aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2018-02-24 14:48:19 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2018-02-24 14:48:19 +0100
commitd04b5179ffc26ab7bfd7210e1103f5ab4f1bd54f (patch)
tree727ad9a40025b757ed9d57a40a67a75b7572a0f5 /railties
parentf9fa1a9dca4a3808bd38ff490dc8ee899813f181 (diff)
downloadrails-d04b5179ffc26ab7bfd7210e1103f5ab4f1bd54f.tar.gz
rails-d04b5179ffc26ab7bfd7210e1103f5ab4f1bd54f.tar.bz2
rails-d04b5179ffc26ab7bfd7210e1103f5ab4f1bd54f.zip
[ci skip] Spell out the full variable in generated code.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt
index ae868e4c73..d3bcaa5ec8 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt
@@ -17,7 +17,7 @@
# end
# If you are using UJS then enable automatic nonce generation
-# Rails.application.config.content_security_policy_nonce_generator = ->(req) { SecureRandom.base64(16) }
+# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
# Report CSP violations to a specified URI
# For further information see the following documentation: