aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-07-20 08:39:48 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-07-20 08:39:48 -0600
commit9bd6e39b0cc65a3e534b55ab3239374239b19927 (patch)
tree497168e61c361615d5fa07effd04e27ab6640752 /activerecord/lib
parentc4c55774aafd2b0ff244c11a7e2db53f6b85eb78 (diff)
parent1883f37742b976d3d20e0ba4a3564911f4868172 (diff)
downloadrails-9bd6e39b0cc65a3e534b55ab3239374239b19927.tar.gz
rails-9bd6e39b0cc65a3e534b55ab3239374239b19927.tar.bz2
rails-9bd6e39b0cc65a3e534b55ab3239374239b19927.zip
Merge pull request #20949 from vngrs/missing_method_in_exception
Add missing method name to exception description
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index 19e9ffcb3c..b5a8c81fe4 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -971,7 +971,7 @@ module ActiveRecord
alias_method :append, :<<
def prepend(*args)
- raise NoMethodError, "prepend on association is not defined. Please use << or append"
+ raise NoMethodError, "prepend on association is not defined. Please use <<, push or append"
end
# Equivalent to +delete_all+. The difference is that returns +self+, instead