Class: Dragonfly::ActiveModelExtensions::Attachment::ConfigProxy
- Inherits:
-
Object
- Object
- Dragonfly::ActiveModelExtensions::Attachment::ConfigProxy
- Defined in:
- lib/dragonfly/active_model_extensions/attachment_class_methods.rb
Instance Method Summary (collapse)
-
- (ConfigProxy) initialize(spec, block)
constructor
A new instance of ConfigProxy.
Constructor Details
- (ConfigProxy) initialize(spec, block)
Returns a new instance of ConfigProxy
8 9 10 11 |
# File 'lib/dragonfly/active_model_extensions/attachment_class_methods.rb', line 8 def initialize(spec, block) @spec = spec instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(meth, *args, &block) (private)
54 55 56 57 58 59 60 |
# File 'lib/dragonfly/active_model_extensions/attachment_class_methods.rb', line 54 def method_missing(meth, *args, &block) if meth.to_s =~ /^storage_(.*)$/ storage_opt($1.to_sym, args.first, &block) else super end end |