Method: Cell::Twin::ClassMethods#twin
- Defined in:
- lib/cell/twin.rb
#twin(twin_class) ⇒ Object
11 12 13 |
# File 'lib/cell/twin.rb', line 11 def twin(twin_class) super(twin_class) { |dfn| property dfn.name } # create readers to twin model. end |