From cb0fbbeac8c36ca01329c623d29bf75daa994840 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 10 Dec 2013 09:38:27 -0500 Subject: Add config/tokens.yml template --- railties/lib/rails/generators/rails/app/app_generator.rb | 1 + .../lib/rails/generators/rails/app/templates/config/tokens.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 railties/lib/rails/generators/rails/app/templates/config/tokens.yml (limited to 'railties') 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 %> -- cgit v1.2.3