first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class ApplicationController < ActionController::API
|
||||
rescue_from ActiveRecord::RecordNotFound, with: :render_not_found
|
||||
|
||||
private
|
||||
|
||||
def render_not_found
|
||||
render json: { error: "not_found" }, status: :not_found
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user