Sha256: 0c296e7ddf4fcf0f9bcca534cff24acbcef9cd48fe35dd0b23a068d08d27cab5

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 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: "with: :exception", verbose: false}
end
git :add => 'app/controllers/application_controller.rb'
git :commit => "-qm 'Adding secure headers.'"

puts "\n"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pah-0.0.4 lib/pah/partials/_secure_headers.rb