Module: Traits::Association::Naming
- Included in:
- Traits::Association
- Defined in:
- lib/traits/association/naming.rb
Instance Method Summary collapse
Instance Method Details
#plural_name ⇒ Object
9 10 11 |
# File 'lib/traits/association/naming.rb', line 9 def plural_name @plural_name ||= reflection.plural_name.to_sym end |
#to_hash ⇒ Object
13 14 15 |
# File 'lib/traits/association/naming.rb', line 13 def to_hash super.merge!(name: name, plural_name: plural_name) end |