diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-02 10:23:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-02 10:23:04 -0800 |
commit | 72405efe64c7f2d4fc759744b8facbd781f56165 (patch) | |
tree | 11d0ac5728018e843e406e779cc878bb74468360 /activesupport/lib | |
parent | 1f2e7214aaed01f50be12017f0ffbf9fcdbdbb5e (diff) | |
download | rails-72405efe64c7f2d4fc759744b8facbd781f56165.tar.gz rails-72405efe64c7f2d4fc759744b8facbd781f56165.tar.bz2 rails-72405efe64c7f2d4fc759744b8facbd781f56165.zip |
anonymous classes have blank names on ruby 1.8
Diffstat (limited to 'activesupport/lib')
-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 4abeb74c45..9776eb6a79 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -537,7 +537,7 @@ module ActiveSupport #:nodoc: def []=(key, value) return unless key.respond_to?(:name) - raise(ArgumentError, 'anonymous classes cannot be cached') unless key.name + raise(ArgumentError, 'anonymous classes cannot be cached') if key.name.blank? @store[key.name] = value end |