lib/paperclip/thumbnail.rb in thoughtbot-paperclip-2.2.3 vs lib/paperclip/thumbnail.rb in thoughtbot-paperclip-2.2.4
- old
+ new
@@ -8,10 +8,10 @@
# will attempt to transform the image into one defined by +target_geometry+
# which is a "WxH"-style string. +format+ will be inferred from the +file+
# unless specified. Thumbnail creation will raise no errors unless
# +whiny+ is true (which it is, by default. If +convert_options+ is
# set, the options will be appended to the convert command upon image conversion
- def initialize file, options = {}
+ def initialize file, options = {}, attachment = nil
super
geometry = options[:geometry]
@file = file
@crop = geometry[-1,1] == '#'
@target_geometry = Geometry.parse geometry