lib/rest_model/serialization/float.rb in rest_model-0.1.9 vs lib/rest_model/serialization/float.rb in rest_model-0.1.10
- old
+ new
@@ -1,16 +1,16 @@
class RestModel
module Serialization
class Float
def self.serialize(value)
Float(value)
- rescue ArgumentError
+ rescue
raise SerializationError, "value '#{value}' is not a float"
end
def self.desserialize(value)
Float(value)
- rescue ArgumentError
+ rescue
raise SerializationError, "value '#{value}' is not a float"
end
end
end
end