aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorYehuda Katz <yehudakatz@YK.local>2010-02-27 12:18:28 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-27 12:18:28 -0800
commit1c9de08734f5305f5cff560a192f7f58d3f3fc11 (patch)
tree299e130d1a9807930f042200085a5361c7ac2469 /activesupport/lib
parentd8acaf2b66be431ccd594cb90afc4ef2dc470b34 (diff)
downloadrails-1c9de08734f5305f5cff560a192f7f58d3f3fc11.tar.gz
rails-1c9de08734f5305f5cff560a192f7f58d3f3fc11.tar.bz2
rails-1c9de08734f5305f5cff560a192f7f58d3f3fc11.zip
Escape the file name (who knows when a "(" might appear in a filename!)
Diffstat (limited to 'activesupport/lib')
-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 2d7aa7e1e6..9c4412c28c 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -442,7 +442,7 @@ module ActiveSupport #:nodoc:
qualified_name = qualified_name_for from_mod, const_name
path_suffix = qualified_name.underscore
- trace = caller.reject {|l| l =~ %r{#{__FILE__}}}
+ trace = caller.reject {|l| l =~ %r{#{Regexp.escape(__FILE__)}}}
name_error = NameError.new("uninitialized constant #{qualified_name}")
name_error.set_backtrace(trace)