class ApplicationController

Base class for this application's controllers

Protected Instance Methods

rescue_record_not_found() click to toggle source

Render an HTTP error on ActiveRecord::RecordNotFound

# File app/controllers/application_controller.rb, line 16
def rescue_record_not_found
  render json: { errors: 'Record not found' }, status: :not_found
end