diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-10-25 14:49:39 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-25 14:52:44 +0530 |
commit | 5c97d4ff29cfd944da751f01177a3024626d57bb (patch) | |
tree | 4142a8173f00fa3ff1e03e513d18aeef89be3042 /activerecord/lib | |
parent | 5cf932344a4482a0cfbda57e9f69ebe64e70a261 (diff) | |
download | rails-5c97d4ff29cfd944da751f01177a3024626d57bb.tar.gz rails-5c97d4ff29cfd944da751f01177a3024626d57bb.tar.bz2 rails-5c97d4ff29cfd944da751f01177a3024626d57bb.zip |
"raise NoMethodError" raises NoMethodError. Raise it with NoMethodError.new instead.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 1c753524de..177d156834 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -233,7 +233,7 @@ module ActiveRecord method_name = method_id.to_s if self.class.private_method_defined?(method_name) - raise NoMethodError("Attempt to call private method", method_name, args) + raise NoMethodError.new("Attempt to call private method", method_name, args) end # If we haven't generated any methods yet, generate them, then |