Module: ActsAsDynamicMethod::ClassMethods
- Defined in:
- lib/acts_as_dynamic_method.rb
Instance Attribute Summary collapse
-
#json_field ⇒ Object
Returns the value of attribute json_field.
Instance Method Summary collapse
Instance Attribute Details
#json_field ⇒ Object
Returns the value of attribute json_field.
7 8 9 |
# File 'lib/acts_as_dynamic_method.rb', line 7 def json_field @json_field end |
Instance Method Details
#acts_as_dynamic_method(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/acts_as_dynamic_method.rb', line 9 def acts_as_dynamic_method( = {}) self.json_field = ([:json_field] || :params).to_s include ActsAsDynamicMethod::InstanceMethods end |