Method: Sequel::Plugins::PgArrayAssociations::ManyToPgArrayAssociationReflection#default_key
- Defined in:
- lib/sequel/plugins/pg_array_associations.rb
#default_key ⇒ Object
Assume that the key in the associated table uses a version of the current model’s name suffixed with _ids.
104 105 106 |
# File 'lib/sequel/plugins/pg_array_associations.rb', line 104 def default_key :"#{underscore(demodulize(self[:model].name))}_ids" end |