class ApplicationController < ActionController::Base
  def render_not_found_html
    render file: "#{Rails.root}/public/404.html", status: 404
  end

  def render_not_found_json(class_name, id)
    render json: { error: "#{class_name} #{id} not found" }, status: :not_found
  end
end