summaryrefslogtreecommitdiff
path: root/app/controllers/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r--app/controllers/profiles/emails_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/profiles/emails_controller.rb b/app/controllers/profiles/emails_controller.rb
index 0cd5a7db098..2c85606c271 100644
--- a/app/controllers/profiles/emails_controller.rb
+++ b/app/controllers/profiles/emails_controller.rb
@@ -1,5 +1,4 @@
class Profiles::EmailsController < Profiles::ApplicationController
-
before_action :find_email, only: [:destroy, :resend_confirmation_instructions]
def index
@@ -39,7 +38,7 @@ class Profiles::EmailsController < Profiles::ApplicationController
def email_params
params.require(:email).permit(:email)
end
-
+
def find_email
@email = current_user.emails.find(params[:id])
end