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
148 149 150 151 152 153 154 |
# File 'lib/nested_record/setup.rb', line 148 def define_methods define_writer_method define_build_method define_attributes_writer_method define_validation_method define_bang_method end |
#type ⇒ Object
156 157 158 |
# File 'lib/nested_record/setup.rb', line 156 def type @type ||= NestedRecord::Type::HasOne.new(self) end |