mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FEATURE: add special header that names the action for the request
This commit is contained in:
parent
7b8786e14f
commit
9b8b1d0034
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue