diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-17 17:50:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-17 17:50:18 -0700 |
commit | a95ffadc14e757f91b3f18533bc442d141e77e39 (patch) | |
tree | c500e413723b12bbf4aaa12bb5f4498ffa560aa2 /activesupport | |
parent | 56cb34d8e59ef93e1ad83d4c9e03183712438413 (diff) | |
download | rails-a95ffadc14e757f91b3f18533bc442d141e77e39.tar.gz rails-a95ffadc14e757f91b3f18533bc442d141e77e39.tar.bz2 rails-a95ffadc14e757f91b3f18533bc442d141e77e39.zip |
we only support 1.9+, so just check for a name
Diffstat (limited to 'activesupport')
-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 fc4250c740..73559bfe0e 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -634,7 +634,7 @@ module ActiveSupport #:nodoc: when String then desc.sub(/^::/, '') when Symbol then desc.to_s when Module - desc.name.presence || + desc.name || raise(ArgumentError, "Anonymous modules have no name to be referenced by") else raise TypeError, "Not a valid constant descriptor: #{desc.inspect}" end |