Method: ActiveData::Model::Representation::ClassMethods#represents
- Defined in:
- lib/active_data/model/representation.rb
#represents(*names, &block) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/active_data/model/representation.rb', line 32 def represents(*names, &block) = names. names.each do |name| add_attribute(ActiveData::Model::Attributes::Reflections::Represents, name, , &block) end end |