aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
Commit message (Collapse)AuthorAgeFilesLines
...
| * Simplify the action endpoint:Carlhuda2010-03-081-1/+5
| | | | | | | | | | | | | | * Remove ActionEndpoint in favor of passing a block to MiddlewareStack * Always create a Request; the performance win of RackDelegation is around the response; the Request object hit is limited to a single object allocation * #dispatch takes a Request
| * Add memoizing to AD::RequestCarlhuda2010-03-081-0/+8
| |
| * Require 'active_support/core_ext/hash/except' in the router.Carl Lerche2010-03-081-0/+2
| |
| * Whoops. We meant to switch from returning to tap, not vice versaCarlhuda2010-03-081-1/+1
| |
| * Add support for mount RackApp, :at => "/sprockets" with a shorthand of mount ↵Carlhuda2010-03-083-10/+25
| | | | | | | | | | | | | | | | | | | | Sprockets => "/sprockets". This is different from the match syntax in that it cannot be used for controller/action and it does not assume an anchor at the end of the match. For instance, in the above example, if the client asked for "/sprockets/foo.js", the Sprockets app would have a SCRIPT_NAME of "/sprockets" and PATH_INFO of "/foo.js".
| * Make sure nested singular resources get the correct nameJan De Poorter2010-03-071-1/+4
| | | | | | | | | | | | [#3911 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-074-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
| * Tweak default_url_options deprecation warningJeremy Kemper2010-03-051-2/+2
| |
| * Remove the ability to set the mountpoint when initializing a route set.Carl Lerche2010-03-041-4/+3
| |
| * Tweak out url_for uses :script_name and add some testsCarl Lerche2010-03-042-10/+11
| |
| * Have ActionDispatch::Routing::RouteSet.new ready to receive routes as is.Carl Lerche2010-03-041-0/+1
| |
| * Get rid of relative_url_path in favor of respecting SCRIPT_NAME. Also added ↵Carlhuda2010-03-042-2/+9
| | | | | | | | a way to specify a default SCRIPT_NAME when generating URLs out of the context of a request.
| * Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-042-9/+5
| | | | | | | | 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.
| * Move session and session_store onto ActionDispatch and add deprecation warningsCarlhuda2010-03-041-0/+2
| |
| * Add caller to request_uri deprecation noticeCarlhuda2010-03-031-1/+1
| |
| * Move remote_ip to a middleware:Carlhuda2010-03-034-55/+53
| | | | | | | | | | * ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check * ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies
| * Add a BlockUntrustedIps middlewareCarl Lerche2010-03-031-0/+25
| |
| * ActionDispatch::Request deprecates #request_uriCarl Lerche2010-03-031-10/+3
| | | | | | | | * Refactored ActionPatch to use fullpath instead
| * Rack::Request actually defines #query_stringCarl Lerche2010-03-031-5/+0
| |
| * Tweak the semantic of various URL related methods of ActionDispatch::RequestCarlhuda2010-03-031-25/+6
| |
| * No longer add missing leading / on path args to assert_redirected_to. ↵Jeremy Kemper2010-03-021-9/+14
| | | | | | | | Deprecated in 2.3.6.
| * Request#subdomain returns a string version of Request#subdomainsJoshua Peek2010-02-281-0/+4
| |
| * Remove implicit controller namespacing from new dslJoshua Peek2010-02-283-23/+27
| |
| * The instance_reader of default_url_options needs to not exist.Yehuda Katz2010-02-271-0/+1
| |
| * Remind us that RoutingAssertions should work in an integration contextYehuda Katz2010-02-261-0/+1
| |
| * Set the body using the accessor for AD::Response introspection mode so it ↵Carlhuda2010-02-261-1/+2
| | | | | | | | gets wrapped in a []
| * If IntegrationSession is initialized with an objects that responds to ↵Carlhuda2010-02-262-8/+21
| | | | | | | | #routes, automatically extend the URL helpers from the RouteSet onto it
| * Setting UrlFor in with_routing is no longer needed now that it's not globalCarlhuda2010-02-261-3/+0
| |
| * Remove traces of SharedTestRoutes from user code; leave it as a standin for ↵Carlhuda2010-02-261-12/+0
| | | | | | | | Rails.application.routes in Rails internal tests
| * Change the API for setting global options for #url_for to self.url_options = ↵Carlhuda2010-02-262-12/+24
| | | | | | | | | | | | { ... } This attr_accessor can be set in a before filter or in the action itself. Overwriting default_url_options still works but will output a deprecation notice.
| * Remove the :use_defaults check in UrlFor#merge optionsCarlhuda2010-02-261-1/+1
| |
| * Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-262-9/+8
| |
| * Rename metaclass to singleton_classCarlhuda2010-02-251-1/+1
| |
| * Get URL helpers working again in integration tests.Carlhuda2010-02-251-24/+24
| |
| * Final pass at removing the router from a global constantCarlhuda2010-02-254-9/+1
| |
| * Continued effort to deglobalize the routerCarlhuda2010-02-252-42/+12
| |
| * WIP: Remove the global routerCarlhuda2010-02-256-18/+219
| |
| * Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-2/+2
| |
| * Remove ActionController::Base.resources_path_namesCarl Lerche2010-02-241-7/+8
| |
| * Makes send_file work again by deferring to Rack::Sendfile. Carlhuda2010-02-231-0/+2
| | | | | | | | | | | | | | | | | | | | * 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.
| * Make AD::Response correctly handle bodies that respond_to?(:to_path) as per ↵Carlhuda2010-02-231-0/+12
| | | | | | | | the Rack spec
| * Use ActionDispatch::Routing everywhereMartin Schürrer2010-02-214-13/+19
| |
| * Store compiled parameter filters so we don't have to compile them in each ↵José Valim2010-02-211-25/+40
| | | | | | | | request.
| * Fix a bunch of pending tests by providing an introspection mode for the ↵Carlhuda2010-02-193-19/+41
| | | | | | | | Response object that does up-front parsing of the headers to populate things like @etag
| * Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵José Valim2010-02-191-1/+1
| | | | | | | | after_initializer is executed after to_prepare callbacks.
| * Rename router internal option :namespace to :controller_namespace which is ↵José Valim2010-02-171-3/+3
| | | | | | | | its real purpose.
| * Merge master.José Valim2010-02-171-1/+1
| |\
| | * rack-mount 0.5 supportJoshua Peek2010-02-151-1/+1
| | |
| * | Make Railties tests green again.José Valim2010-02-171-7/+12
| | |
| * | AD::TestProcess relies on request.flash, so let's load it.José Valim2010-02-161-0/+2
| | |