闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
317 B

  1. # frozen_string_literal: true
  2. module Admin
  3. class ConfirmationsController < BaseController
  4. before_action :set_account
  5. def create
  6. @account.user.confirm
  7. redirect_to admin_accounts_path
  8. end
  9. private
  10. def set_account
  11. @account = Account.find(params[:account_id])
  12. end
  13. end
  14. end