aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2018-05-21 17:24:11 +0200
committerGitHub <noreply@github.com>2018-05-21 17:24:11 +0200
commitdb485a8d992ab4eda513bfe758ebc5478aec661c (patch)
tree316736f8dc35ccfb78306b25c9bd6e53c13868ed
parentba07b5fc12a740d41d288bea6347f15f4948483c (diff)
parent61ca92661e3d3eebb7ab135aa90e2996b4cec1f1 (diff)
downloadrails-db485a8d992ab4eda513bfe758ebc5478aec661c.tar.gz
rails-db485a8d992ab4eda513bfe758ebc5478aec661c.tar.bz2
rails-db485a8d992ab4eda513bfe758ebc5478aec661c.zip
Merge pull request #32946 from coryjb/patch-1
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