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
| Modules |
| Generator |
Rails::Generator is a code generation platform tailored for the Rails web
application framework. Generators are easily invoked within Rails
applications to add and remove components such as models and controllers.
New generators are easy to create and may be distributed as RubyGems,
tarballs, or Rails plugins for inclusion system-wide, per-user, or
per-application.
|
| MongrelServer |
|
| VERSION |
|
| Classes |
| Configuration |
The Configuration class holds all the parameters for the Initializer and
ships with defaults that suites most Rails applications. But it’s
possible to overwrite everything. Usually, you’ll create an
Configuration file implicitly through the block running on the Initializer,
but it’s also possible to create the Configuration instance in
advance and pass it in like this:
|
| Initializer |
The Initializer is responsible for processing the Rails configuration, such
as setting the $LOAD_PATH, requiring the right frameworks, initializing
logging, and more. It can be run either as a single command that’ll
just use the default configuration, like this:
|
| OrderedOptions |
Needs to be duplicated from Active Support since its needed before Active
Support is available. Here both Options and Hash are namespaced to prevent
conflicts with other implementations AND with the classes residing in
ActiveSupport.
|
| Plugin |
The Plugin class should be an object which provides the following methods:
|
| SecretKeyGenerator |
|
<code/>and<pre/>for code samples.