lib/cuba_api/accept_content.rb in cuba-api-0.5.0 vs lib/cuba_api/accept_content.rb in cuba-api-0.5.1
- old
+ new
@@ -49,10 +49,10 @@
mime = env[ 'HTTP_ACCEPT' ]
if self.class.mimes.key?( mime )
res[ "Content-Type" ] = mime + "; charset=utf-8"
obj.send self.class[ :mimes ][ mime ]
else
- head :not_found
+ no_body :not_found
nil
end
end
def self.included( base )