diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-06-20 09:55:41 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-06-20 09:55:41 -0400 |
commit | bd3fde093112275bef5ab71bfac7ca17e43af8b8 (patch) | |
tree | d9591075f6c739f90c9b2ae2747e87431f610d78 /activesupport/lib/active_support | |
parent | b36df0f6c8e1af0a35b892c72d4ec0fbd30ec3ab (diff) | |
download | rails-bd3fde093112275bef5ab71bfac7ca17e43af8b8.tar.gz rails-bd3fde093112275bef5ab71bfac7ca17e43af8b8.tar.bz2 rails-bd3fde093112275bef5ab71bfac7ca17e43af8b8.zip |
Add regression test for NameError#name
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index d7db0d6648..a8d12366cc 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -187,7 +187,7 @@ module ActiveSupport #:nodoc: # top-level constant. def guess_for_anonymous(const_name) if Object.const_defined?(const_name) - raise NameError.new "#{const_name} cannot be autoloaded from an anonymous class or module", const_name + raise NameError.new "#{const_name} cannot be autoloaded from an anonymous class or module", const_name.to_s else Object end |