mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
anonymous classes have blank names on ruby 1.8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user