clean: remove unused Current.instructeur

This commit is contained in:
simon lehericey 2023-03-15 17:25:26 +01:00
parent a984c21f64
commit c0ca9f156e
2 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -1,3 +1,3 @@
class Current < ActiveSupport::CurrentAttributes
attribute :instructeur, :request_id
attribute :request_id
end