lib/koine/attributes/adapter/base.rb in koine-attributes-0.2.0 vs lib/koine/attributes/adapter/base.rb in koine-attributes-0.2.1

- old
+ new

@@ -21,10 +21,14 @@ protected # duplicates if possible and freezes object def secure value = yield - value = value.dup if value.respond_to?(:dup) + + unless value.is_a?(::Symbol) + value = value.dup if value.respond_to?(:dup) + end + value.freeze end end end end