lib/rest_model/serialization/float.rb in rest_model-0.1.6 vs lib/rest_model/serialization/float.rb in rest_model-0.1.7

- old
+ new

@@ -2,16 +2,16 @@ module Serialization class Float def self.serialize(value) Float(value) rescue ArgumentError - raise "value not serializable: #{value}" + raise SerializationError, "value '#{value}' is not a float" end def self.desserialize(value) Float(value) rescue ArgumentError - raise "value not desserializable: #{value}" + raise SerializationError, "value '#{value}' is not a float" end end end end