mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 01:36:02 +02:00
Keyrelays index
This commit is contained in:
parent
f8ef86dcd5
commit
71df97f553
8 changed files with 58 additions and 4 deletions
|
@ -1,5 +1,10 @@
|
|||
class Admin::KeyrelaysController < AdminController
|
||||
load_and_authorize_resource
|
||||
|
||||
def index
|
||||
@q = Keyrelay.includes(:requester, :accepter).search(params[:q])
|
||||
@keyrelays = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
def show; end
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def after_sign_in_path_for(_resource)
|
||||
return session[:user_return_to].to_s if session[:user_return_to]
|
||||
return session[:user_return_to].to_s if session[:user_return_to] && session[:user_return_to] != login_path
|
||||
admin_root_path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue