Blah, SecureRandom#uuid is not supported in 1.8.7 -- cant wait for Rails 4.0 to drop compatibility with 1.8.x

This commit is contained in:
David Heinemeier Hansson 2011-10-19 14:45:42 -05:00
parent 1b50207ed3
commit ada78066fd
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ module ActionDispatch
end
def internal_request_id
SecureRandom.uuid
SecureRandom.hex(16)
end
end
end

View File

@ -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