lib/datacaster/predefined.rb in datacaster-3.3.0 vs lib/datacaster/predefined.rb in datacaster-3.3.1
- old
+ new
@@ -129,10 +129,10 @@
def default(value, on: nil)
transform do |x|
if x == Datacaster.absent ||
(!on.nil? && x.respond_to?(on) && x.public_send(on))
- value
+ Datacaster::Utils.deep_freeze(value)
else
x
end
end
end