class ScopedAssociations::ActiveRecord4::HasOne::ScopedHasOneAssociation

Public Instance Methods

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