Sha256: a5a7939d9335ff590b2853036382d8a8e00efbabd4a556d54be453a09139ab95
Contents?: true
Size: 389 Bytes
Versions: 3
Compression:
Stored size: 389 Bytes
Contents
puts "Adding secure headers... ".magenta 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} end git :add => 'app/controllers/application_controller.rb' git :commit => "-qm 'Adding secure headers.'" puts "\n"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.3 | lib/pah/partials/_secure_headers.rb |
pah-0.0.2 | lib/pah/partials/_secure_headers.rb |
pah-0.0.1 | lib/pah/partials/_secure_headers.rb |