Exception wording change
This commit is contained in:
parent
054893d574
commit
61ca92661e
@ -417,7 +417,7 @@ def mapping
|
|||||||
class AssociationReflection < MacroReflection #:nodoc:
|
class AssociationReflection < MacroReflection #:nodoc:
|
||||||
def compute_class(name)
|
def compute_class(name)
|
||||||
if polymorphic?
|
if polymorphic?
|
||||||
raise ArgumentError, "Polymorphic association does not support to compute class."
|
raise ArgumentError, "Polymorphic associations do not support computing the class."
|
||||||
end
|
end
|
||||||
active_record.send(:compute_type, name)
|
active_record.send(:compute_type, name)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user