Restores the usage of the stored path instead of forcing root path after every login

This commit is contained in:
kikito
2015-10-02 18:37:15 +02:00
parent 5069f86eb9
commit fc11a3b41b

View File

@@ -4,7 +4,7 @@ class Users::SessionsController < Devise::SessionsController
if stored_path_allows_welcome_screen? && resource.show_welcome_screen? if stored_path_allows_welcome_screen? && resource.show_welcome_screen?
welcome_path welcome_path
else else
root_path super
end end
end end