aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-02-09 22:18:38 +0000
committerMichael Koziarski <michael@koziarski.com>2008-02-09 22:18:38 +0000
commit9e13b966f6fa19b19c34abfe29400b6f826e00c7 (patch)
tree485ef1ebbca22ab8d963f0cfc6041de211541805 /railties/lib
parent3df052ac601186fb9f4b40a33c56b50524402249 (diff)
downloadrails-9e13b966f6fa19b19c34abfe29400b6f826e00c7.tar.gz
rails-9e13b966f6fa19b19c34abfe29400b6f826e00c7.tar.bz2
rails-9e13b966f6fa19b19c34abfe29400b6f826e00c7.zip
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
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails_generator/secret_key_generator.rb13
1 files 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