Class: Muffin::NestedAttribute
- Inherits:
-
Object
- Object
- Muffin::NestedAttribute
- Includes:
- Attributes, Policy, Validation
- Defined in:
- lib/muffin/frostings/attributes.rb
Constant Summary
Constants included from Attributes
Instance Attribute Summary
Attributes included from Attributes
Instance Method Summary collapse
-
#initialize(attributes) ⇒ NestedAttribute
constructor
A new instance of NestedAttribute.
Methods included from Validation
included, #required_attributes
Methods included from Policy
#attribute_permitted?, #attribute_value_permitted?, included, #permit!, #permit_attribute!, #permitted?, #permitted_values
Methods included from Attributes
#assign_attributes, included, #persisted?, #respond_to_missing?
Constructor Details
#initialize(attributes) ⇒ NestedAttribute
Returns a new instance of NestedAttribute.
77 78 79 |
# File 'lib/muffin/frostings/attributes.rb', line 77 def initialize(attributes) self.attributes = attributes end |