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