Module: Uploadable::ClassMethods

Defined in:
lib/uploadable.rb

Instance Method Summary collapse

Instance Method Details

#uploadable(options = {}) ⇒ Object



15
16
17
# File 'lib/uploadable.rb', line 15

def uploadable options = {}
  @upload_processor = Uploadable::Processor.new :model => self, :mandatory_fields => options[:mandatory_fields], :optional_fields => options[:optional_fields]
end