Class: UploadColumn::ConfigurationProxy
- Inherits:
-
Object
- Object
- UploadColumn::ConfigurationProxy
- Defined in:
- lib/upload_column/configuration.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, value) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/upload_column/configuration.rb', line 40 def method_missing(method, value) if name = (method.to_s.match(/^(.*?)=$/) || [])[1] UploadColumn.configuration[name.to_sym] = value else super end end |