spec/dummy/config/initializers/secret_token.rb in cadenero-0.0.2.b3 vs spec/dummy/config/initializers/secret_token.rb in cadenero-0.0.2.b4

- old
+ new

@@ -1,8 +1,19 @@ # Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! + # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Dummy::Application.config.secret_token = '2badc583f5ee641098da66a9330ca138b22302e4c6a8b0e67ca37ef180bd836406f056cf35bdf2c1214cd8835c55969e74fe8f589dde6b093bac703a32960807' -Dummy::Application.config.secret_key_base = 'df98291699a229624c0907ad6236b289bc51369d1d1f2729b2c66cdad46b60cb2cb64b93d47b0d2fd9aa4f833bc8d4c98eaaed223f9d4b9ed684677f655611e8' \ No newline at end of file +# You can use `rake secret` to generate a secure secret key. + +# Make sure your secret_key_base is kept private +# if you're sharing your code publicly. + +# Although this is not needed for an api-only application, rails4 +# requires secret_key_base or secret_toke to be defined, otherwise an +# error is raised. +# Using secret_token for rails3 compatibility. Change to secret_key_base +# to avoid deprecation warning. +# Can be safely removed in a rails3 api-only application. +Dummy::Application.config.secret_token = 'df98291699a229624c0907ad6236b289bc51369d1d1f2729b2c66cdad46b60cb2cb64b93d47b0d2fd9aa4f833bc8d4c98eaaed223f9d4b9ed684677f655611e8'