mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
Merge updates and fixes
This commit is contained in:
parent
96d1c60dd8
commit
2e47bcf5cb
4 changed files with 9 additions and 11 deletions
|
@ -15,14 +15,6 @@ class ApplicationController < ActionController::Base
|
|||
redirect_to admin_dashboard_path, alert: exception.message
|
||||
end
|
||||
|
||||
def current_ability
|
||||
if defined?(current_api_user) && current_api_user.present?
|
||||
current_api_user.ability
|
||||
else
|
||||
current_user.ability
|
||||
end
|
||||
end
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue