FEATURE: add special header that names the action for the request

This commit is contained in:
Sam 2015-06-16 09:54:44 +10:00
parent 7b8786e14f
commit 9b8b1d0034
1 changed files with 1 additions and 0 deletions

View File

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