aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorprakash <prakash@punchh.com>2015-08-18 11:39:52 +0530
committerprakash <prakash@punchh.com>2015-08-18 11:39:52 +0530
commit820726704d2b2b4ba040b7ab54f9f626b622247e (patch)
treeec58f2df583daf838099cf11e3a1fd66e5501ec0 /activerecord/lib
parent88a1800526855edfc42209d4960b48550212fd8f (diff)
downloadrails-820726704d2b2b4ba040b7ab54f9f626b622247e.tar.gz
rails-820726704d2b2b4ba040b7ab54f9f626b622247e.tar.bz2
rails-820726704d2b2b4ba040b7ab54f9f626b622247e.zip
Correct error message in Standard American english and add a test case for the same.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/preloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/preloader.rb b/activerecord/lib/active_record/associations/preloader.rb
index 6ecc741195..3992a240b9 100644
--- a/activerecord/lib/active_record/associations/preloader.rb
+++ b/activerecord/lib/active_record/associations/preloader.rb
@@ -116,7 +116,7 @@ module ActiveRecord
when String
preloaders_for_one(association.to_sym, records, scope)
else
- raise ArgumentError, "#{association.inspect} was not recognised for preload"
+ raise ArgumentError, "#{association.inspect} was not recognized for preload"
end
end