Skip to content

Commit

Permalink
I personally need thumbnails to be called :thumbnail. This should pro…
Browse files Browse the repository at this point in the history
…bably be configurable.
  • Loading branch information
endymion committed Jun 4, 2009
1 parent f94cb5c commit c2d5979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/as_paperclip_bridge.rb
Expand Up @@ -19,7 +19,7 @@ def initialize_with_paperclip(model_id)

def configure_paperclip_field(field)
self.columns << field
self.columns[field].list_ui ||= self.model.attachment_definitions[field][:styles].include?(:thumb) ? :paperclip_thumb : :paperclip_link
self.columns[field].list_ui ||= self.model.attachment_definitions[field][:styles].include?(:thumbnail) ? :paperclip_thumb : :paperclip_link
self.columns[field].form_ui ||= :paperclip

['file_name', 'content_type', 'file_size', 'updated_at'].each{ |f|
Expand Down

0 comments on commit c2d5979

Please sign in to comment.