Permalink
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...
1 parent 1b50207 commit ada78066fdbccffb1da092a2470211fa252b3c99 @dhh dhh committed Oct 19, 2011
@@ -33,7 +33,7 @@ def external_request_id(env)
end
def internal_request_id
- SecureRandom.uuid
+ SecureRandom.hex(16)
end
end
end
@@ -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

0 comments on commit ada7806

Please sign in to comment.