mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use available method rather than macro name checking
This commit is contained in:
parent
fe24ba881a
commit
20405e516b
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def ensure_mutable
|
||||
if source_reflection.macro != :belongs_to
|
||||
unless source_reflection.belongs_to?
|
||||
raise HasManyThroughCantAssociateThroughHasOneOrManyReflection.new(owner, reflection)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue