Exception wording change

This commit is contained in:
Cory Becker 2018-05-21 08:37:49 -05:00 committed by GitHub
parent 054893d574
commit 61ca92661e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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