mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
678 B
Ruby
18 lines
678 B
Ruby
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.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
|
|
end
|
|
end
|
|
end
|