aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/qualified_const.rb
diff options
context:
space:
mode:
authorAlexey Gaziev <alex.gaziev@gmail.com>2012-04-29 01:10:58 +0400
committerAlexey Gaziev <alex.gaziev@gmail.com>2012-04-29 03:12:07 +0400
commit92572241e2966529360106aec086373d56904dbc (patch)
treedb790f3e88a4e0e44edf5fb06c75a90993d03e97 /activesupport/lib/active_support/core_ext/module/qualified_const.rb
parent1946d7b9229fabb52226f9ff82de72872c748d90 (diff)
downloadrails-92572241e2966529360106aec086373d56904dbc.tar.gz
rails-92572241e2966529360106aec086373d56904dbc.tar.bz2
rails-92572241e2966529360106aec086373d56904dbc.zip
AS core_ext refactoring pt.2
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/qualified_const.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/qualified_const.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/qualified_const.rb b/activesupport/lib/active_support/core_ext/module/qualified_const.rb
index 8adf050b6b..7d7ae38f68 100644
--- a/activesupport/lib/active_support/core_ext/module/qualified_const.rb
+++ b/activesupport/lib/active_support/core_ext/module/qualified_const.rb
@@ -5,7 +5,7 @@ require 'active_support/core_ext/string/inflections'
#++
module QualifiedConstUtils
def self.raise_if_absolute(path)
- raise NameError, "wrong constant name #$&" if path =~ /\A::[^:]+/
+ raise NameError.new("wrong constant name #$&") if path =~ /\A::[^:]+/
end
def self.names(path)