Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8826

Show
Ignore:
Timestamp:
02/09/08 22:18:38 (8 months ago)
Author:
nzkoz
Message:

Move SecretKeyGenerator comments to the correct place for rdoc. Closes #10940 [FooBarWidget]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/rails_generator/secret_key_generator.rb

    r8365 r8826  
    1 # A class for creating random secret keys. This class will do its best to create a 
    2 # random secret key that's as secure as possible, using whatever methods are 
    3 # available on the current platform. For example: 
    4 # 
    5 #   generator = Rails::SecretKeyGenerator("some unique identifier, such as the application name") 
    6 #   generator.generate_secret     # => "f3f1be90053fa851... (some long string)" 
    7  
    81module Rails 
     2  # A class for creating random secret keys. This class will do its best to create a 
     3  # random secret key that's as secure as possible, using whatever methods are 
     4  # available on the current platform. For example: 
     5  # 
     6  #   generator = Rails::SecretKeyGenerator("some unique identifier, such as the application name") 
     7  #   generator.generate_secret     # => "f3f1be90053fa851... (some long string)" 
    98  class SecretKeyGenerator 
    109    GENERATORS = [ :secure_random, :win32_api, :urandom, :openssl, :prng ].freeze