diff options
author | Chulki Lee <chulki.lee@gmail.com> | 2014-01-10 16:27:18 -0800 |
---|---|---|
committer | Chulki Lee <chulki.lee@gmail.com> | 2014-01-13 12:47:14 -0800 |
commit | bea44cbaa48433d427a9418ff6b5c617b10e0585 (patch) | |
tree | 89bc319a4b5396c57da214411ec06f69f0e231fe /activerecord/lib | |
parent | 8b70319c270415e9f99ed8eb1f12dd1caaade1fd (diff) | |
download | rails-bea44cbaa48433d427a9418ff6b5c617b10e0585.tar.gz rails-bea44cbaa48433d427a9418ff6b5c617b10e0585.tar.bz2 rails-bea44cbaa48433d427a9418ff6b5c617b10e0585.zip |
Set NameError#name
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/inheritance.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/inheritance.rb b/activerecord/lib/active_record/inheritance.rb index 949e7678a5..69896f7219 100644 --- a/activerecord/lib/active_record/inheritance.rb +++ b/activerecord/lib/active_record/inheritance.rb @@ -126,7 +126,7 @@ module ActiveRecord end end - raise NameError, "uninitialized constant #{candidates.first}" + raise NameError.new("uninitialized constant #{candidates.first}", candidates.first) end end |