mirror of https://github.com/rails/rails
anonymous classes have blank names on ruby 1.8
This commit is contained in:
parent
1f2e7214aa
commit
72405efe64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue