Module: Paperclip::WithDefault::ClassMethods

Defined in:
lib/paperclip/with_default.rb

Instance Method Summary collapse

Instance Method Details

#has_attached_file_with_defaults(name, options = {}) ⇒ Object

Simply calls has_attached_file with the default values found in Paperclip::WitDefault.options merged into options.



25
26
27
# File 'lib/paperclip/with_default.rb', line 25

def has_attached_file_with_defaults(name, options = {})
  has_attached_file name, Paperclip::WithDefault.options.merge(options)
end