From 1170cceaaec8c0c8aef173913405be1456e4b2be Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Mon, 23 May 2011 19:45:49 +0100 Subject: Removed ActiveSupport::SecureRandom in favour of SecureRandom from the standard library. (It has been deprecated in the 3-1-stable branch.) --- railties/lib/rails/tasks/misc.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/tasks/misc.rake') diff --git a/railties/lib/rails/tasks/misc.rake b/railties/lib/rails/tasks/misc.rake index 53e479b924..833fcb6f72 100644 --- a/railties/lib/rails/tasks/misc.rake +++ b/railties/lib/rails/tasks/misc.rake @@ -9,7 +9,7 @@ end desc 'Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions).' task :secret do - require 'active_support/secure_random' + require 'securerandom' puts SecureRandom.hex(64) end -- cgit v1.2.3