lib/restful/serializers/base.rb in purzelrakete-restful-0.2.6 vs lib/restful/serializers/base.rb in purzelrakete-restful-0.2.7

- old
+ new

@@ -27,9 +27,11 @@ self.serializers ||= {} self.serializers[key] = self end def formatted_value(value) + return value unless value.respond_to?(:value) + return nil if value.value.blank? && value.extended_type != :false_class case value.extended_type when :datetime value.value.xmlschema when :time \ No newline at end of file