0
0
Fork 0

Adding e-mail confirmations

This commit is contained in:
Eugen Rochko 2016-10-03 16:38:22 +02:00
parent b3c7c8700d
commit fc198a8b4c
15 changed files with 72 additions and 36 deletions

View file

@ -12,6 +12,12 @@ class Auth::SessionsController < Devise::SessionsController
protected
def after_sign_in_path_for(_resource)
stored_location_for(:user) || root_path
last_url = stored_location_for(:user)
if [about_path].include?(last_url)
root_path
else
last_url || root_path
end
end
end