class ScopedAssociations::ActiveRecord5::HasOne::ScopedHasOneAssociation
Public Instance Methods
creation_attributes()
click to toggle source
Calls superclass method
# File lib/scoped_associations/activerecord5/has_one.rb, line 21 def creation_attributes attributes = super attributes[reflection.foreign_scope] = reflection.name.to_s attributes end