Module: S3Multipart::Uploader::Core
- Includes:
- Callbacks, Validations
- Defined in:
- lib/s3_multipart/uploader.rb
Overview
Generated multipart upload controllers (which reside in the app/uploaders/multipart directory in the Rails application) extend this module.
Instance Attribute Summary
Attributes included from Validations
Attributes included from Callbacks
#on_begin_callback, #on_complete_callback
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Validations
Methods included from Callbacks
Class Method Details
.extended(klass) ⇒ Object
30 31 32 |
# File 'lib/s3_multipart/uploader.rb', line 30 def self.extended(klass) Uploader.controllers[klass.to_s.to_sym] = Digest::SHA1.hexdigest(klass.to_s) end |
Instance Method Details
#attach(model) ⇒ Object
34 35 36 37 38 |
# File 'lib/s3_multipart/uploader.rb', line 34 def attach(model) S3Multipart::Upload.class_eval do has_one(model) end end |