lib/cuba_api/serializer.rb in cuba-api-0.1.0 vs lib/cuba_api/serializer.rb in cuba-api-0.2.0

- old
+ new

@@ -32,16 +32,16 @@ def serializer( obj, options = {}) if options[:serializer] == false || obj.is_a?( String ) obj else - s = self.class.serializer_factory.new( obj ) + s = self.class.serializer_factory.new_serializer( obj ) s.use( options[ :use ] ) if options[ :use ] s end end def self.included( base ) base.append_aspect :serializer end end -end \ No newline at end of file +end