Class: Avocado::VerificationsController
Constant Summary
BaseController::FINDER_PARAMETERS
Instance Method Summary
collapse
Instance Method Details
#create ⇒ Object
17
18
19
20
21
|
# File 'app/controllers/avocado/verifications_controller.rb', line 17
def create
send_email_verification(current_user)
redirect_to root_path,
notice: t(".success")
end
|
#edit ⇒ Object
8
9
|
# File 'app/controllers/avocado/verifications_controller.rb', line 8
def edit
end
|
#update ⇒ Object
11
12
13
14
15
|
# File 'app/controllers/avocado/verifications_controller.rb', line 11
def update
@user.update! verified: true
redirect_to root_path,
notice: t(".success")
end
|