Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <brett@digitalmoksha.com>2017-09-14 17:18:32 +0300
committerBrett Walker <brett@digitalmoksha.com>2017-09-23 16:26:04 +0300
commita32f1dddf2ed65f3e61ded56256da2996d6442bd (patch)
treeff1b82df8738ed7c3ffa21086537bd7c44199ef8 /app/controllers
parenta000c2a1443beb7de0b5193f89916ccce57170c5 (diff)
fixes for rubocop
Diffstat (limited to 'app/controllers')
-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