rails/rails — pull request #5226 by seryl (2012-03-01 07:00:52+00:00)
Title: Fixed sqlite_adapter to support SecureRandom.hex by adding US_ASCII encoding to type_cast.

Setting a String column to SecureRandom.hex causes a no method error.

SecureRandom.hex returns a :string type, only without utf-8 or ASCII_8BIT encodings.

But this makes it all better.

I figured we should add this since SecureRandom is part of core ruby.