Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4095 from arunagw/using_uuid

Using uuid which is supported in 1.9
  • Loading branch information...
commit 1f75a1fea12ead1370113ea1be0272667ab7da88 2 parents 893d38d + 0f510e9
José Valim josevalim authored
2  actionpack/lib/action_dispatch/middleware/request_id.rb
View
@@ -33,7 +33,7 @@ def external_request_id(env)
end
def internal_request_id
- SecureRandom.hex(16)
+ SecureRandom.uuid
end
end
end
2  actionpack/test/dispatch/request_id_test.rb
View
@@ -14,7 +14,7 @@ class RequestIdTest < ActiveSupport::TestCase
end
test "generating a request id when none is supplied" do
- assert_match(/\w+/, stub_request.uuid)
+ assert_match /\w+-\w+-\w+-\w+-\w+/, stub_request.uuid
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.