Makes welcome screen work using a sessions controller

This commit is contained in:
kikito
2015-09-10 17:41:37 +02:00
parent 01acc84679
commit 249aed42c4
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class Users::SessionsController < Devise::SessionsController
def after_sign_in_path_for(resource)
if resource.show_welcome_screen?
welcome_path
else
root_path
end
end
end