Module: QuickFile::Upload::ClassMethods
- Defined in:
- lib/quick_file/upload.rb
Instance Method Summary collapse
Instance Method Details
#add_style(style_name, blk) ⇒ Object
23 24 25 |
# File 'lib/quick_file/upload.rb', line 23 def add_style(style_name, blk) processes[style_name.to_s] = {:blk => blk} end |
#quick_file_mongo_keys! ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/quick_file/upload.rb', line 26 def quick_file_mongo_keys! key :sta, Integer # state key :orf, String # original filename key :sty, Hash # styles key :sto, String, :default => "s3" # storage key :oty, String # owner type key :oid, ObjectId # owner id key :err, Array # errors attr_alias :state, :sta attr_alias :original_filename, :orf attr_alias :styles, :sty attr_alias :storage_type, :sto attr_alias :errors, :err attr_alias :owner_type, :oty end |