aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-06-09 23:48:28 -0700
committerSteve Klabnik <steve@steveklabnik.com>2013-06-09 23:48:28 -0700
commitcbfcd9ddf1c964829307a8ce4b483c50252898a7 (patch)
tree73c25e049f42333dbaff3a1a95c0153ccacbd11f /activesupport/lib/active_support/dependencies.rb
parentf5e133e830940731b74c4e12118eab90054d32ec (diff)
parenta548792aa0beef4330a3d47eb75dd2fe741013bc (diff)
downloadrails-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/lib/active_support/dependencies.rb')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index fff4c776a9..d38e4b0732 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -213,7 +213,7 @@ module ActiveSupport #:nodoc:
yield
end
rescue Exception => exception # errors from loading file
- exception.blame_file! file
+ exception.blame_file! file if exception.respond_to? :blame_file!
raise
end