mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Remove /client
This commit is contained in:
parent
cf11f1aaf8
commit
5754bbe297
42 changed files with 6 additions and 1155 deletions
|
@ -9,13 +9,8 @@ class ApplicationController < ActionController::Base
|
|||
params[resource] &&= send(method) if respond_to?(method, true)
|
||||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
def after_sign_in_path_for(_resource)
|
||||
return session[:user_return_to].to_s if session[:user_return_to]
|
||||
|
||||
if resource.admin? && can?(:create, :admin_session)
|
||||
admin_root_path
|
||||
else
|
||||
client_root_path
|
||||
end
|
||||
admin_root_path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue