class ScopedAssociations::ActiveRecord5::HasManyClassMethods::ScopedHasManyAssociation

Public Instance Methods

creation_attributes() click to toggle source
Calls superclass method
# File lib/scoped_associations/activerecord5/has_many.rb, line 21
def creation_attributes
  attributes = super
  attributes[reflection.foreign_scope] = reflection.name.to_s
  attributes
end