diff options
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 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 |