mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Refactor sessions
This commit is contained in:
parent
e2507f8661
commit
744f29c674
18 changed files with 126 additions and 16 deletions
|
@ -17,9 +17,14 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def after_sign_in_path_for(_resource)
|
||||
if session[:user_return_to] && session[:user_return_to] != login_path
|
||||
return session[:user_return_to].to_s
|
||||
return session[:user_return_to].to_s
|
||||
end
|
||||
|
||||
if request.path.match('registrar')
|
||||
registrar_invoices_path
|
||||
elsif request.path.match('admin')
|
||||
admin_dashboard_path
|
||||
end
|
||||
admin_dashboard_path
|
||||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue