Skip to content

Commit

Permalink
fix for the issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Naglik committed Aug 13, 2009
1 parent 760f5e4 commit 0d1c2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/as_paperclip_bridge.rb
Expand Up @@ -22,7 +22,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?(:thumbnail) ? :paperclip_thumb : :paperclip_link
self.columns[field].list_ui ||= self.model.attachment_definitions[field][:styles].try(: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 0d1c2ac

Please sign in to comment.