aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-10 09:38:27 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-12 14:59:11 -0500
commitcb0fbbeac8c36ca01329c623d29bf75daa994840 (patch)
tree44977cb60241c196417681e4295f8d6262264366 /railties
parent93ee9f0cba607f1050610cddcfa509e5faa7e731 (diff)
downloadrails-cb0fbbeac8c36ca01329c623d29bf75daa994840.tar.gz
rails-cb0fbbeac8c36ca01329c623d29bf75daa994840.tar.bz2
rails-cb0fbbeac8c36ca01329c623d29bf75daa994840.zip
Add config/tokens.yml template
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/tokens.yml8
2 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index 87556bd609..2c4911cadc 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -78,6 +78,7 @@ module Rails
template "routes.rb"
template "application.rb"
template "environment.rb"
+ template "tokens.yml"
directory "environments"
directory "initializers"
diff --git a/railties/lib/rails/generators/rails/app/templates/config/tokens.yml b/railties/lib/rails/generators/rails/app/templates/config/tokens.yml
new file mode 100644
index 0000000000..3ce5de1dc9
--- /dev/null
+++ b/railties/lib/rails/generators/rails/app/templates/config/tokens.yml
@@ -0,0 +1,8 @@
+development:
+ secret_key_base: <%= app_secret %>
+
+test:
+ secret_key_base: <%= app_secret %>
+
+production:
+ secret_key_base: <%= app_secret %>