Sha256: b2bb6a47535fe88060fdc26b3cb13a31aed289256a94e8404de612bbe5004ef6
Contents?: true
Size: 798 Bytes
Versions: 3
Compression:
Stored size: 798 Bytes
Contents
Description: Creates YAML file in your config directory and an initializer to load this config. The config has a separate section for each environment. The config is loaded into a constant called APP_CONFIG by default, this changes depending on the name you choose to pass the generator. Use this constant to access the config settings like this. `APP_CONFIG[:some_setting]` Examples: `script/generate jfs_config` Creates a YAML config and initializer: YAML: config/app_config.yml Initializer: config/initializers/load_app_config.rb `script/generate jfs_config passwords` Creates a YAML config and initializer: YAML: config/passwords_config.yml Initializer: config/initializers/load_passwords_config.rb
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jfs-generators-0.2.0 | rails_generators/jfs_config/USAGE |
jfs-generators-0.2.4 | rails_generators/jfs_config/USAGE |
jfs-generators-0.2.3 | rails_generators/jfs_config/USAGE |