Sha256: fb0409463333bc144b46e839e0b7a745ac36120e0ad4a940fe5fe41ff00f8fe5

Contents?: true

Size: 835 Bytes

Versions: 6

Compression:

Stored size: 835 Bytes

Contents

require "action_dispatch"
require "rails"

module ActionDispatch
  class Railtie < Rails::Railtie
    config.action_dispatch = ActiveSupport::OrderedOptions.new
    config.action_dispatch.x_sendfile_header = ""
    config.action_dispatch.ip_spoofing_check = true
    config.action_dispatch.show_exceptions = true
    config.action_dispatch.best_standards_support = true
    config.action_dispatch.tld_length = 1
    config.action_dispatch.ignore_accept_header = false
    config.action_dispatch.rack_cache = {:metastore => "rails:/", :entitystore => "rails:/", :verbose => true}

    initializer "action_dispatch.configure" do |app|
      ActionDispatch::Http::URL.tld_length = app.config.action_dispatch.tld_length
      ActionDispatch::Request.ignore_accept_header = app.config.action_dispatch.ignore_accept_header
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
actionpack-3.1.0.rc5 lib/action_dispatch/railtie.rb
actionpack-3.1.0.rc4 lib/action_dispatch/railtie.rb
actionpack-3.1.0.rc3 lib/action_dispatch/railtie.rb
actionpack-3.1.0.rc2 lib/action_dispatch/railtie.rb
actionpack-3.1.0.rc1 lib/action_dispatch/railtie.rb
actionpack-3.1.0.beta1 lib/action_dispatch/railtie.rb