lib/jsonapionify/api/server.rb in jsonapionify-0.0.1.pre vs lib/jsonapionify/api/server.rb in jsonapionify-0.9.0
- old
+ new
@@ -31,10 +31,10 @@
end
def response
@resource ? resource.process(request) : api_index
rescue Errors::ResourceNotFound
- Resource::Http.process(:not_found, request)
+ api.http_error(:not_found, request)
end
private
def api_index