Permalink
Browse files

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
  • Loading branch information...
1 parent 3df052a commit 9e13b966f6fa19b19c34abfe29400b6f826e00c7 @NZKoz NZKoz committed Feb 9, 2008
Showing with 6 additions and 7 deletions.
  1. +6 −7 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

0 comments on commit 9e13b96

Please sign in to comment.