Sha256: 6e3e060f050cdac579f84ccee2dc614c5bb552e2f5c111db18234f6888cdc21a
Contents?: true
Size: 812 Bytes
Versions: 6
Compression:
Stored size: 812 Bytes
Contents
Description: The zoo_config generator creates YAML file in your config directory and an initializer to load this config. The config has a separate section for each environment. This is a great place to put any config settings you don't want in your app. 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: rails generate zoo:config Config: config/app_config.yml Initializer: config/initializers/load_app_config.rb rails generate zoo:config passwords Config: config/passwords_config.yml Initializer: config/initializers/load_passwords_config.rb
Version data entries
6 entries across 6 versions & 1 rubygems