mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
optimize queries
This commit is contained in:
parent
8a422412d6
commit
7d5d935a65
8 changed files with 101 additions and 43 deletions
|
|
@ -3,9 +3,14 @@
|
|||
module Admin
|
||||
class BaseController < ApplicationController
|
||||
before_action :verify_user_admin
|
||||
before_action :load_all_conferences
|
||||
|
||||
private
|
||||
|
||||
def load_all_conferences
|
||||
@conferences = Conference.all
|
||||
end
|
||||
|
||||
def current_ability
|
||||
@current_ability ||= AdminAbility.new(current_user)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue