Sha256: ef87b689e61c2f9a02ea948539c2229938028cd1733d5b458aa7fd35b6d08a78
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
require 'rack/protection' require 'rack/rewrite' module HerokuStandardConfig class Railtie < Rails::Railtie initializer "heroku_standard_config.insert_middleware" do |app| app.middleware.insert_before(Rack::Lock, Rack::Rewrite) do r301 %r{^/(.*)/(\?.*)?$}, '/$1$2' end app.middleware.use Rack::Protection::FrameOptions end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heroku_standard_config-0.0.3 | lib/heroku_standard_config.rb~ |
heroku_standard_config-0.0.2 | lib/heroku_standard_config.rb |
heroku_standard_config-0.0.1 | lib/heroku_standard_config.rb |