aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/secrets.yml16
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 %>