lib/rest_model/key/property/sender.rb in rest_model-0.2.1 vs lib/rest_model/key/property/sender.rb in rest_model-0.2.3
- old
+ new
@@ -2,10 +2,10 @@
class Property
module Sender
def to_source!(value, resource, options = {})
source_value = begin
translation.translates_to_source? ? translation.translate_to_source(value, resource)
- : serializer.desserialize(value)
+ : serializer.desserialize(value, self.options)
rescue TranslationError, SerializationError => error
raise error if options[:fail] and validates?(value)
end