Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Using uuid which is supported in 1.9 #4095

Merged
merged 1 commit into from

2 participants

@arunagw
Collaborator

Orignal commit

ada7806

I think we can do changes other places also!

@arunagw arunagw Using uuid which is supported in 1.9
Orignal commit #ada78066fdbccffb1da092a2470211fa252b3c99
0f510e9
@josevalim josevalim merged commit 1f75a1f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 21, 2011
  1. @arunagw

    Using uuid which is supported in 1.9

    arunagw authored
    Orignal commit #ada78066fdbccffb1da092a2470211fa252b3c99
This page is out of date. Refresh to see the latest.
View
2  actionpack/lib/action_dispatch/middleware/request_id.rb
@@ -33,7 +33,7 @@ def external_request_id(env)
end
def internal_request_id
- SecureRandom.hex(16)
+ SecureRandom.uuid
end
end
end
View
2  actionpack/test/dispatch/request_id_test.rb
@@ -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
Something went wrong with that request. Please try again.