Class: ROM::Associations::OneToMany
- Defined in:
- core/lib/rom/associations/one_to_many.rb
Overview
Abstract one-to-many association
Direct Known Subclasses
Instance Method Summary collapse
-
#call ⇒ Object
abstract
Adapters must implement this method.
-
#foreign_key ⇒ Symbol
Return configured or inferred FK name.
Instance Method Details
#call ⇒ Object
This method is abstract.
Adapters must implement this method
16 17 18 |
# File 'core/lib/rom/associations/one_to_many.rb', line 16 def call(*) raise NotImplementedError end |
#foreign_key ⇒ Symbol
Return configured or inferred FK name
25 26 27 |
# File 'core/lib/rom/associations/one_to_many.rb', line 25 def foreign_key definition.foreign_key || target.foreign_key(source.name) end |