Class: Muffin::NestedAttribute

Inherits:
Object
  • Object
show all
Includes:
Attributes, Policy, Validation
Defined in:
lib/muffin/frostings/attributes.rb

Constant Summary

Constants included from Attributes

Attributes::Boolean

Instance Attribute Summary

Attributes included from Attributes

#attributes

Instance Method Summary collapse

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