diff options
author | Mike Gehard <mike.gehard@gmail.com> | 2011-02-09 06:32:40 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-12 13:43:23 -0200 |
commit | 58de03f077b0da1cb923f28835b00cd092de3c08 (patch) | |
tree | 5fc257dbfc60dd6603c39d4535ddb95dc73837ab /activerecord | |
parent | 63c8ea9a6a28ecaabb236dae094d99d9d1ee2ecd (diff) | |
download | rails-58de03f077b0da1cb923f28835b00cd092de3c08.tar.gz rails-58de03f077b0da1cb923f28835b00cd092de3c08.tar.bz2 rails-58de03f077b0da1cb923f28835b00cd092de3c08.zip |
Add additional text to NotImplementedErrors [#6328 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/singular_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/singular_association.rb b/activerecord/lib/active_record/associations/singular_association.rb index 0d8e45adb5..4edbe216be 100644 --- a/activerecord/lib/active_record/associations/singular_association.rb +++ b/activerecord/lib/active_record/associations/singular_association.rb @@ -37,7 +37,7 @@ module ActiveRecord # Implemented by subclasses def replace(record) - raise NotImplementedError + raise NotImplementedError, "Subclasses must implement a replace(record) method" end def set_new_record(record) |