Permalink
Browse files

Fixed problem when a :convert_options hash was not passed to has_atta…

…ched_file
  • Loading branch information...
jamesbrooks committed Aug 26, 2008
1 parent 7af82d2 commit 8164a6fea54664723ed65283674c7b0ca4f82669
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/attachment.rb
@@ -34,7 +34,7 @@ def initialize name, instance, options = {}
@default_style = options[:default_style]
@storage = options[:storage]
@whiny_thumbnails = options[:whiny_thumbnails]
- @convert_options = options[:convert_options]
+ @convert_options = options[:convert_options] || {}
@options = options
@queued_for_delete = []
@queued_for_write = {}

0 comments on commit 8164a6f

Please sign in to comment.