blob: dad38fff6b9854d41e264c79e4e4c6471481d214 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module Projects
module Boards
class ApplicationController < Projects::ApplicationController
respond_to :json
rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
private
def record_not_found(exception)
render json: { error: exception.message }, status: :not_found
end
end
end
end
|