Module: ActsAsDefault::ClassMethods
- Defined in:
- lib/acts_as_default.rb
Instance Attribute Summary collapse
-
#field_key ⇒ Object
readonly
Returns the value of attribute field_key.
Instance Method Summary collapse
Instance Attribute Details
#field_key ⇒ Object (readonly)
Returns the value of attribute field_key.
12 13 14 |
# File 'lib/acts_as_default.rb', line 12 def field_key @field_key end |
Instance Method Details
#acts_as_default(field = nil) ⇒ Object
14 15 16 17 |
# File 'lib/acts_as_default.rb', line 14 def acts_as_default(field = nil) @field_key = field include ActsAsDefault::InstanceMethods end |