Class: Paperclip::Autosize

Inherits:
Thumbnail
  • Object
show all
Defined in:
lib/paperclip_processors/autosize.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}, attachment = nil) ⇒ Autosize

Returns a new instance of Autosize.



3
4
5
6
7
# File 'lib/paperclip_processors/autosize.rb', line 3

def initialize file, options = {}, attachment = nil
  super
  attachment.instance.send(:autosizer_attachment_name=, attachment.name.to_s)
  attachment.instance.send(:autosizer_original_file_geometry=, @current_geometry)
end