diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-14 00:12:54 -0800 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-14 00:12:54 -0800 |
commit | f6ca00bd43a497ef46aa630469e95eda4e43f018 (patch) | |
tree | 6aa63b38629e4c569fee9f851b4420d7394c7a29 /activerecord/lib | |
parent | 58730361b339aa625e6dedfda421494f9162f883 (diff) | |
parent | bea44cbaa48433d427a9418ff6b5c617b10e0585 (diff) | |
download | rails-f6ca00bd43a497ef46aa630469e95eda4e43f018.tar.gz rails-f6ca00bd43a497ef46aa630469e95eda4e43f018.tar.bz2 rails-f6ca00bd43a497ef46aa630469e95eda4e43f018.zip |
Merge pull request #13669 from chulkilee/name-error-name
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 |