Method: ActiveType::NestedAttributes::ClassMethods#nests_one
- Defined in:
- lib/active_type/nested_attributes.rb
#nests_one(association_name, options = {}) ⇒ Object
15 16 17 |
# File 'lib/active_type/nested_attributes.rb', line 15 def nests_one(association_name, = {}) Builder.new(self, generated_nested_attribute_methods).build(association_name, :one, ) end |