From 9e13b966f6fa19b19c34abfe29400b6f826e00c7 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 9 Feb 2008 22:18:38 +0000 Subject: [PATCH] Move SecretKeyGenerator comments to the correct place for rdoc. Closes #10940 [FooBarWidget] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/rails_generator/secret_key_generator.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/railties/lib/rails_generator/secret_key_generator.rb b/railties/lib/rails_generator/secret_key_generator.rb index 497df72ce9..801b33c761 100644 --- a/railties/lib/rails_generator/secret_key_generator.rb +++ b/railties/lib/rails_generator/secret_key_generator.rb @@ -1,11 +1,10 @@ -# A class for creating random secret keys. This class will do its best to create a -# random secret key that's as secure as possible, using whatever methods are -# available on the current platform. For example: -# -# generator = Rails::SecretKeyGenerator("some unique identifier, such as the application name") -# generator.generate_secret # => "f3f1be90053fa851... (some long string)" - module Rails + # A class for creating random secret keys. This class will do its best to create a + # random secret key that's as secure as possible, using whatever methods are + # available on the current platform. For example: + # + # generator = Rails::SecretKeyGenerator("some unique identifier, such as the application name") + # generator.generate_secret # => "f3f1be90053fa851... (some long string)" class SecretKeyGenerator GENERATORS = [ :secure_random, :win32_api, :urandom, :openssl, :prng ].freeze