method
ensure_not_nested
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::Associations::ThroughAssociation
ensure_not_nested()private
No documentation available.
# File activerecord/lib/active_record/associations/through_association.rb, line 76
def ensure_not_nested
if reflection.nested?
raise HasManyThroughNestedAssociationsAreReadonly.new(owner, reflection)
end
end