diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-06-09 23:48:28 -0700 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-06-09 23:48:28 -0700 |
commit | cbfcd9ddf1c964829307a8ce4b483c50252898a7 (patch) | |
tree | 73c25e049f42333dbaff3a1a95c0153ccacbd11f /activesupport/test/dependencies/raises_exception_without_blame_file.rb | |
parent | f5e133e830940731b74c4e12118eab90054d32ec (diff) | |
parent | a548792aa0beef4330a3d47eb75dd2fe741013bc (diff) | |
download | rails-cbfcd9ddf1c964829307a8ce4b483c50252898a7.tar.gz rails-cbfcd9ddf1c964829307a8ce4b483c50252898a7.tar.bz2 rails-cbfcd9ddf1c964829307a8ce4b483c50252898a7.zip |
Merge pull request #10795 from atambo/master
Don't blindly call blame_file! on exceptions in ActiveSupport::Dependes::Loadable
Diffstat (limited to 'activesupport/test/dependencies/raises_exception_without_blame_file.rb')
-rw-r--r-- | activesupport/test/dependencies/raises_exception_without_blame_file.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/dependencies/raises_exception_without_blame_file.rb b/activesupport/test/dependencies/raises_exception_without_blame_file.rb new file mode 100644 index 0000000000..4b2da6ff30 --- /dev/null +++ b/activesupport/test/dependencies/raises_exception_without_blame_file.rb @@ -0,0 +1,5 @@ +exception = Exception.new('I am not blamable!') +class << exception + undef_method(:blame_file!) +end +raise exception |