aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/compatibility.rb
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup deprecation warnings in Action ControllerCarlos Antonio da Silva2010-09-061-13/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-2/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+2
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove deprecated support to <% form_for %> and several ↵José Valim2010-08-291-6/+10
| | | | ActionController::Base methods.
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-2/+2
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-2/+0
| | | | started in another directory which is not the RAILS_ROOT.
* Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-171-9/+0
| | | | ActionController::Base#template since it is no longer needed.
* Clean LookupContext API.José Valim2010-03-081-1/+2
|
* Finally moved the find template logic to the views.José Valim2010-03-081-3/+8
|
* More cleanup on the layouts side.José Valim2010-03-081-2/+0
|
* Added template lookup responsible to hold all information used in template ↵José Valim2010-03-071-13/+0
| | | | lookup.
* Refactor cache_store to use ActionController configCarlhuda2010-03-041-5/+0
|
* Move stuff from compatibility.rb to deprecated.rbCarlhuda2010-03-041-126/+5
|
* Move session and session_store onto ActionDispatch and add deprecation warningsCarlhuda2010-03-041-0/+6
|
* Fix all the broken tests due to the AC configuration refactorCarl Lerche2010-03-031-0/+3
|
* Add caller to deprecation noticesCarlhuda2010-03-031-11/+11
|
* Deprecate IP spoofing settings that are directly on the controller in favor ↵Carlhuda2010-03-031-7/+26
| | | | of configuring a middleware
* Indicate that ActionController::Base.resource_action_separator is deprecated ↵Carl Lerche2010-03-031-2/+9
| | | | and only has an effect with the deprecated router DSL.
* ActionController::Base.use_accept_header is not actually used anymore, so ↵Carl Lerche2010-03-031-2/+8
| | | | let's deprecate it.
* Work on deprecating ActionController::Base.relative_url_rootCarlhuda2010-03-031-2/+39
|
* Move session_store and session_options to the AC configuration objectCarlhuda2010-03-031-3/+0
|
* Remove ActionController::Base.resources_path_namesCarl Lerche2010-02-241-2/+0
|
* Use ActionDispatch::Routing everywhereMartin Schürrer2010-02-211-2/+2
|
* Its not a deprecation if you actually just ignore the callDavid Heinemeier Hansson2010-02-091-0/+2
|
* Deprecate AC configuration values which were moved to Rack.José Valim2010-02-011-6/+22
|
* Fix some backward incompatible behavior on AM.José Valim2010-01-301-13/+2
|
* Move Flash into middlewareJoshua Peek2010-01-151-1/+1
|
* Respect resources_path_names and :path_names options in new dslJoshua Peek2010-01-131-3/+2
|
* optimise_named_routes is unnecessaryJoshua Peek2010-01-131-5/+0
|
* Reorganize autoloads:Carlhuda2009-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* cache_store and page_cache_directory are already defined in cachingJoshua Peek2009-12-011-4/+1
| | | | and pages
* Caching refactoringYehuda Katz2009-10-291-3/+5
|
* Move legacy param_parsers config onto AD::ParamsParserJoshua Peek2009-08-211-6/+0
|
* More perf work:Yehuda Katz2009-08-111-4/+3
| | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
* Got overhead down from 127 to 85. All tests pass:Yehuda Katz2009-08-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string.
* Allow to configure trusted proxies via ↵Felipe Talavera2009-08-091-0/+2
| | | | | | ActionController::Base.trusted_proxies [#2126 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+147
their module locations