Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ched_file
  • Loading branch information...
commit 8164a6fea54664723ed65283674c7b0ca4f82669 1 parent 7af82d2
@jamesbrooks jamesbrooks authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/attachment.rb
View
2  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 = {}
Please sign in to comment.
Something went wrong with that request. Please try again.