From 9b8b1d0034a766709023f73508282a68e57cec1d Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 16 Jun 2015 09:54:44 +1000 Subject: [PATCH] FEATURE: add special header that names the action for the request --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7b3534046..962d3a386 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -145,6 +145,7 @@ class ApplicationController < ActionController::Base if current_user Logster.add_to_env(request.env,"username",current_user.username) end + response.headers["Discourse-Route"] = "#{controller_name}/#{action_name}" end def set_locale