diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-20 10:58:59 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-20 10:58:59 +0300 |
commit | 1883f37742b976d3d20e0ba4a3564911f4868172 (patch) | |
tree | b81637755c3d333c9c5bff8e62b1d786c6ed153c /activerecord | |
parent | 6ffec3c16c0ee0b0ab4643907af1f2ed80a71a9a (diff) | |
download | rails-1883f37742b976d3d20e0ba4a3564911f4868172.tar.gz rails-1883f37742b976d3d20e0ba4a3564911f4868172.tar.bz2 rails-1883f37742b976d3d20e0ba4a3564911f4868172.zip |
Add missing method name to exception description
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 2 |
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 |