mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 04:04:03 +00:00
optimize queries
This commit is contained in:
parent
8a422412d6
commit
7d5d935a65
8 changed files with 101 additions and 43 deletions
|
|
@ -5,7 +5,6 @@ class ApplicationController < ActionController::Base
|
|||
include ApplicationHelper
|
||||
add_flash_types :error
|
||||
protect_from_forgery with: :exception, prepend: true
|
||||
before_action :get_conferences
|
||||
before_action :store_location
|
||||
# Ensure every controller authorizes resource or skips authorization (skip_authorization_check)
|
||||
check_authorization unless: :devise_controller?
|
||||
|
|
@ -37,10 +36,6 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
def get_conferences
|
||||
@conferences = Conference.all
|
||||
end
|
||||
|
||||
def current_ability
|
||||
@current_ability ||= Ability.new(current_user)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue