lib/aggro/transform/string.rb in aggro-0.0.3 vs lib/aggro/transform/string.rb in aggro-0.0.4
- old
+ new
@@ -3,14 +3,14 @@
# Private: Transforms string representations.
module String
module_function
def deserialize(value)
- value.to_s
+ value.to_s unless value.nil?
end
def serialize(value)
- value.to_s
+ value.to_s unless value.nil?
end
end
end
end