Class: NestedRecord::Setup::HasOne
- Inherits:
-
NestedRecord::Setup
- Object
- NestedRecord::Setup
- NestedRecord::Setup::HasOne
- Defined in:
- lib/nested_record/setup.rb
Instance Method Summary collapse
Methods inherited from NestedRecord::Setup
Constructor Details
This class inherits a constructor from NestedRecord::Setup
Instance Method Details
#define_methods ⇒ Object
143 144 145 146 147 148 149 |
# File 'lib/nested_record/setup.rb', line 143 def define_methods define_writer_method define_build_method define_attributes_writer_method define_validation_method define_bang_method end |
#type ⇒ Object
151 152 153 |
# File 'lib/nested_record/setup.rb', line 151 def type @type ||= NestedRecord::Type::HasOne.new(self) end |