Method: Sequel::Model::Associations::ManyToManyAssociationReflection#default_right_key
- Defined in:
- lib/sequel/model/associations.rb
#default_right_key ⇒ Object
Default foreign key name symbol for foreign key in join table that points to the association’s table’s primary key (or :right_primary_key column).
1328 1329 1330 |
# File 'lib/sequel/model/associations.rb', line 1328 def default_right_key :"#{singularize(self[:name])}_id" end |