2010-01-17 06:41:55 -05:00
|
|
|
require "action_dispatch"
|
|
|
|
require "rails"
|
|
|
|
|
|
|
|
module ActionDispatch
|
|
|
|
class Railtie < Rails::Railtie
|
2010-03-26 13:47:55 -04:00
|
|
|
config.action_dispatch = ActiveSupport::OrderedOptions.new
|
2010-03-26 19:58:55 -04:00
|
|
|
config.action_dispatch.x_sendfile_header = ""
|
2010-03-03 19:22:30 -05:00
|
|
|
config.action_dispatch.ip_spoofing_check = true
|
2010-04-02 14:00:29 -04:00
|
|
|
config.action_dispatch.show_exceptions = true
|
2010-07-27 22:24:56 -04:00
|
|
|
config.action_dispatch.best_standards_support = true
|
2010-07-27 10:39:28 -04:00
|
|
|
config.action_dispatch.tld_length = 1
|
2010-09-13 17:03:06 -04:00
|
|
|
config.action_dispatch.rack_cache = {:metastore => "rails:/", :entitystore => "rails:/", :verbose => true}
|
2010-07-27 10:39:28 -04:00
|
|
|
|
|
|
|
initializer "action_dispatch.configure" do |app|
|
|
|
|
ActionDispatch::Http::URL.tld_length = app.config.action_dispatch.tld_length
|
|
|
|
end
|
2010-01-17 06:41:55 -05:00
|
|
|
end
|
2010-07-27 22:24:56 -04:00
|
|
|
end
|