José Valim
772c2b0b86
Use the new ActiveSupport::FileUpdateChecker instead of RoutesReloader.
2010-06-20 13:37:58 +02:00
José Valim
0c3cde404a
Kill legacy dispatcher.
2010-05-18 02:07:59 +02:00
José Valim
997e22c275
Add a test which ensures action_dispatch.show_exceptions is properly disabled.
2010-04-02 20:54:10 +02:00
Rolf Bjaanes
d898a4ba42
Raise exceptions instead of rendering error templates in test environment [ #4315 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-02 20:47:42 +02:00
wycats
56a86c2191
Make X-Sendfile default to "" so it works correctly in dev mode.
...
Provide a default in production.rb that can be modified, so that
people who care about sendfile performance in production mode can
get better performance easily.
2010-03-26 16:58:55 -07:00
José Valim
395d6648ce
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
2010-03-26 18:47:55 +01:00
Carlhuda
e311622e7b
Deprecated ActionController::Base.session_options= and ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
2010-03-04 16:05:52 -08:00
Carlhuda
1776969627
Move session and session_store onto ActionDispatch and add deprecation warnings
2010-03-04 11:58:30 -08:00
Carlhuda
93422af5d5
Move remote_ip to a middleware:
...
* ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check
* ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies
2010-03-03 21:24:00 -08:00
Carlhuda
5e2bd08023
Makes send_file work again by deferring to Rack::Sendfile.
...
* Add the Rack::Sendfile middleware
* Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile").
* Add Railties tests to confirm that these work
* Remove the :stream, :buffer_size, and :x_senfile default options to send_file
* Change the log subscriber to always say "Sent file"
* Add deprecation warnings for options that are now no-ops
Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
2010-02-23 17:06:35 -08:00
José Valim
84ebfa4550
Ensure metals and initializers in plugins are loaded.
2010-01-24 14:48:00 +01:00
José Valim
e548f96b1d
Rename plugin_name to railtie_name and engine_name.
2010-01-24 12:23:21 +01:00
José Valim
2fde9d774b
Solve some pendencies.
2010-01-24 09:32:54 +01:00
José Valim
80130d1201
Extract routes reloading responsibilities from application and load them just upon a request.
2010-01-23 16:06:33 +01:00
José Valim
378464a2e4
Default to sync instrumentation.
2010-01-21 13:09:12 +01:00
José Valim
020e656447
Move middleware builder back to Rails::Rack::Metal without losing the new behavior.
2010-01-17 13:23:38 +01:00
José Valim
27d9836ad3
Add ActionDispatch::Railties::Subscriber and finish tidying up the logging.
2010-01-17 12:43:17 +01:00