Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Blah, SecureRandom#uuid is not supported in 1.8.7 -- cant wait for Ra…

…ils 4.0 to drop compatibility with 1.8.x
  • Loading branch information...
commit ada78066fdbccffb1da092a2470211fa252b3c99 1 parent 1b50207
@dhh dhh authored
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.uuid
+ SecureRandom.hex(16)
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+-\w+-\w+-\w+-\w+/, stub_request.uuid
+ assert_match /\w+/, stub_request.uuid
end
private
Please sign in to comment.
Something went wrong with that request. Please try again.