clean: remove unused Current.instructeur
This commit is contained in:
parent
a984c21f64
commit
c0ca9f156e
2 changed files with 1 additions and 6 deletions
|
@ -7,7 +7,6 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
MAINTENANCE_MESSAGE = 'Le site est actuellement en maintenance. Il sera à nouveau disponible dans un court instant.'
|
||||
|
||||
before_action :set_current_roles
|
||||
before_action :set_sentry_user
|
||||
before_action :redirect_if_untrusted
|
||||
before_action :reject, if: -> { ENV.fetch("MAINTENANCE_MODE", 'false') == 'true' }
|
||||
|
@ -150,10 +149,6 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
private
|
||||
|
||||
def set_current_roles
|
||||
Current.instructeur = current_instructeur
|
||||
end
|
||||
|
||||
def set_active_storage_host
|
||||
ActiveStorage::Current.host = request.base_url
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Current < ActiveSupport::CurrentAttributes
|
||||
attribute :instructeur, :request_id
|
||||
attribute :request_id
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue