Skip to content

Commit

Permalink
Fixed incorrect assumption that the attachment field would be called …
Browse files Browse the repository at this point in the history
…:data.
  • Loading branch information
endymion committed Jun 3, 2009
1 parent bd9db25 commit 6fab5b8
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[:data][:styles].include?(:thumb) ? :paperclip_thumb : :paperclip_link
self.columns[field].list_ui ||= self.model.attachment_definitions[field][:styles].include?(:thumb) ? :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 6fab5b8

Please sign in to comment.