lib/pah/partials/_secure_headers.rb in pah-0.0.3 vs lib/pah/partials/_secure_headers.rb in pah-0.0.4
- old
+ new
@@ -2,11 +2,11 @@
content = <<EOF
ensure_security_headers # See more: https://github.com/twitter/secureheaders
EOF
in_root do
- inject_into_file 'app/controllers/application_controller.rb', content, {after: "protect_from_forgery", verbose: false}
+ inject_into_file 'app/controllers/application_controller.rb', content, {after: "with: :exception", verbose: false}
end
git :add => 'app/controllers/application_controller.rb'
git :commit => "-qm 'Adding secure headers.'"
-puts "\n"
\ No newline at end of file
+puts "\n"