diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 083cee789..95bcdbac3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 diff --git a/app/models/current.rb b/app/models/current.rb index 75930af8e..1f26f21d6 100644 --- a/app/models/current.rb +++ b/app/models/current.rb @@ -1,3 +1,3 @@ class Current < ActiveSupport::CurrentAttributes - attribute :instructeur, :request_id + attribute :request_id end