Module: AttachmentMagick::ClassMethods

Defined in:
lib/attachment_magick.rb

Instance Method Summary collapse

Instance Method Details

#attachment_magick(&block) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/attachment_magick.rb', line 34

def attachment_magick(&block)
  default_grids = generate_grids
  map           = DSL.new(self, default_grids)
  map.instance_eval(&block) if block_given?

  self.attachment_magick_default_options = {:styles => map.styles || default_grids}
  grid_methods
end