aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorDavid Ilizarov <dilizarov@gmail.com>2014-08-15 15:44:01 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-20 20:43:39 -0200
commit7f5cf3a3daececa062299a2b9c86631aa0c3a0cb (patch)
treef3cfe575a20f5646d0aa95b2f4dd226fe3c57dc0 /actionpack/lib/action_dispatch/http
parent14a6e179282010c62f87311f168fcb6a04a8b5ee (diff)
downloadrails-7f5cf3a3daececa062299a2b9c86631aa0c3a0cb.tar.gz
rails-7f5cf3a3daececa062299a2b9c86631aa0c3a0cb.tar.bz2
rails-7f5cf3a3daececa062299a2b9c86631aa0c3a0cb.zip
Aliased the ActionDispatch::Request#uuid method with ActionDispatch::Request#request_id
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index cadbfc88cb..6571060793 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -253,6 +253,8 @@ module ActionDispatch
@uuid ||= env["action_dispatch.request_id"]
end
+ alias_method :request_id, :uuid
+
# Returns the lowercase name of the HTTP server software.
def server_software
(@env['SERVER_SOFTWARE'] && /^([a-zA-Z]+)/ =~ @env['SERVER_SOFTWARE']) ? $1.downcase : nil