diff options
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/secrets.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/secrets.yml b/railties/lib/rails/generators/rails/app/templates/config/secrets.yml index b2669a0f79..433133db98 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/secrets.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/secrets.yml @@ -10,6 +10,22 @@ # Make sure the secrets in this file are kept private # if you're sharing your code publicly. +# You can also share common secrets in multiple environments +# using YAML anchor/reference syntax. + +# common: &common +# api_key: <%= API_KEY %> +# api_secret: <%= API_SECRET %> + +# development: +# <<: *common +# +# test: +# <<: *common +# +# production: +# <<: *common + development: secret_key_base: <%= app_secret %> |