FEATURE: add special header that names the action for the request
This commit is contained in:
parent
7b8786e14f
commit
9b8b1d0034
|
@ -145,6 +145,7 @@ class ApplicationController < ActionController::Base
|
||||||
if current_user
|
if current_user
|
||||||
Logster.add_to_env(request.env,"username",current_user.username)
|
Logster.add_to_env(request.env,"username",current_user.username)
|
||||||
end
|
end
|
||||||
|
response.headers["Discourse-Route"] = "#{controller_name}/#{action_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_locale
|
def set_locale
|
||||||
|
|
Loading…
Reference in New Issue