more freeze fixin

This commit is contained in:
Thomas Reynolds 2014-08-24 18:11:56 -07:00
parent 1d5ae59db9
commit 5c18b85a8e

View file

@ -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