summaryrefslogtreecommitdiff
path: root/app/controllers/confirmations_controller.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-09-21 10:29:09 +0200
committerJames Lopez <james@jameslopez.es>2017-09-28 08:46:39 +0200
commit4a6ec7c947b8ae5360b220ec8c6c91b2221d2091 (patch)
tree6b535d71d0640118122fca3cb748407ddcd89e49 /app/controllers/confirmations_controller.rb
parentf2e9ef102713344938e425d68d1a017403a710e0 (diff)
downloadgitlab-ce-4a6ec7c947b8ae5360b220ec8c6c91b2221d2091.tar.gz
refactor some controllers to make them EE friendly
Diffstat (limited to 'app/controllers/confirmations_controller.rb')
-rw-r--r--app/controllers/confirmations_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb
index 306afb65f10..10d2665c06a 100644
--- a/app/controllers/confirmations_controller.rb
+++ b/app/controllers/confirmations_controller.rb
@@ -12,10 +12,14 @@ class ConfirmationsController < Devise::ConfirmationsController
def after_confirmation_path_for(resource_name, resource)
if signed_in?(resource_name)
- after_sign_in_path_for(resource)
+ after_sign_in(resource)
else
flash[:notice] += " Please sign in."
new_session_path(resource_name)
end
end
+
+ def after_sign_in(resource)
+ after_sign_in_path_for(resource)
+ end
end