Files
todo-back/app/controllers/application_controller.rb
2026-08-08 21:14:10 -05:00

10 lines
225 B
Ruby

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