aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCory Becker <cory@bws.io>2018-05-21 08:37:49 -0500
committerGitHub <noreply@github.com>2018-05-21 08:37:49 -0500
commit61ca92661e3d3eebb7ab135aa90e2996b4cec1f1 (patch)
treef9ef18d5f97836f39c4b292948148116ddde8659
parent054893d574f9c5eebc13d3749680f3a264e4b57d (diff)
downloadrails-61ca92661e3d3eebb7ab135aa90e2996b4cec1f1.tar.gz
rails-61ca92661e3d3eebb7ab135aa90e2996b4cec1f1.tar.bz2
rails-61ca92661e3d3eebb7ab135aa90e2996b4cec1f1.zip
Exception wording change
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 2f43d005f3..22d195c9a4 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -417,7 +417,7 @@ module ActiveRecord
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