lib/cuba_api/write_aspect.rb in cuba-api-0.5.1 vs lib/cuba_api/write_aspect.rb in cuba-api-0.6.0

- old
+ new

@@ -37,15 +37,9 @@ def aspects self[ :aspects ] ||= [] end end - def no_body( status ) - res.status = Rack::Utils.status_code( status ) - res.write Rack::Utils::HTTP_STATUS_CODES[ res.status ] - res['Content-Type' ] = 'text/plain' - end - def write( obj, options = {} ) self.res.status = options[:status] || 200 # make sure we inherit aspects and repsect the order aspects = self.class[ :aspects ] # == CubaAPI ? [] : self.class.superclass[ :aspects ] (aspects + self.class[ :aspects ]).uniq.each do |w|