Class: Clearance::ConfirmationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/clearance/confirmations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



14
15
16
17
18
19
20
21
22
# File 'app/controllers/clearance/confirmations_controller.rb', line 14

def create
  @user = ::User.find_by_id_and_confirmation_token(
                 params[:user_id], params[:token])
  @user.confirm_email!

  (@user)
  flash_success_after_create
  redirect_to(url_after_create)
end

#newObject



10
11
12
# File 'app/controllers/clearance/confirmations_controller.rb', line 10

def new
  create
end