Memorize config options instead of reading them from file over and over again
This commit is contained in:
@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
|
||||
include Pundit::Authorization
|
||||
|
||||
MEMBER_ACTIONS = %i[destroy edit show update].freeze
|
||||
RENDER_HOST = CodeOcean::Config.new(:code_ocean).read[:render_host]
|
||||
|
||||
after_action :verify_authorized, except: %i[welcome]
|
||||
around_action :mnemosyne_trace
|
||||
|
Reference in New Issue
Block a user