method
ensure_mutable
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Associations::ThroughAssociation
ensure_mutable()private
No documentation available.
# File activerecord/lib/active_record/associations/through_association.rb, line 77
def ensure_mutable
unless source_reflection.belongs_to?
raise HasManyThroughCantAssociateThroughHasOneOrManyReflection.new(owner, reflection)
end
end