more freeze fixin
This commit is contained in:
parent
1d5ae59db9
commit
5c18b85a8e
|
@ -92,7 +92,7 @@ module Middleman
|
|||
self.class.new(data)
|
||||
elsif data.is_a? Array
|
||||
data.map(&method(:recursively_enhance)).freeze
|
||||
elsif data.frozen? || data.nil? || [::TrueClass, ::FalseClass].include?(data.class)
|
||||
elsif data.frozen? || data.nil? || [::TrueClass, ::FalseClass, ::Fixnum].include?(data.class)
|
||||
data
|
||||
else
|
||||
data.dup.freeze
|
||||
|
|
Loading…
Reference in a new issue