Method: ActiveData::Model::Representation::ClassMethods#represented_names_and_aliases
- Defined in:
- lib/active_data/model/representation.rb
#represented_names_and_aliases ⇒ Object
45 46 47 48 49 |
# File 'lib/active_data/model/representation.rb', line 45 def represented_names_and_aliases @represented_names_and_aliases ||= represented_attributes.flat_map do |attribute| [attribute.name, *inverted_attribute_aliases[attribute.name]] end end |