accounts_controller.rb 209 B

12345678910
  1. # frozen_string_literal: true
  2. class Redirect::AccountsController < Redirect::BaseController
  3. private
  4. def set_resource
  5. @resource = Account.find(params[:id])
  6. not_found if @resource.local?
  7. end
  8. end