Skip to content

Commit

Permalink
Exception wording change
Browse files Browse the repository at this point in the history
  • Loading branch information
coryjb committed May 21, 2018
1 parent 054893d commit 61ca926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/reflection.rb
Expand Up @@ -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
Expand Down

0 comments on commit 61ca926

Please sign in to comment.