lib/cuba_api/serializer.rb in cuba-api-0.4.0 vs lib/cuba_api/serializer.rb in cuba-api-0.5.0

- old
+ new

@@ -32,10 +32,10 @@ def serializer( obj, options = {}) if options[:serializer] == false || obj.is_a?( String ) obj else - s = self.class.serializer_factory.new_serializer( obj ) + s = options[:serializer] ? options[:serializer].new( obj ) : self.class.serializer_factory.new_serializer( obj ) s.use( options[ :use ] ) if options[ :use ] s end end