aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
Commit message (Collapse)AuthorAgeFilesLines
* Get modules back into integration testsCarlhuda2010-03-171-0/+3
|
* Fix for missing dependency in ActionDispatch::IntegrationMathias Biilmann Christensen2010-03-171-0/+1
| | | | | | | | | | | When running cucumber features from a new rails 3 app requiring 'cucumber/rails/world' would raise: uninitialized constant ActionDispatch::Integration::Session::Test (NameError) Fixed by requiring 'test/unit/assertions' in action_dispatch/integration Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Modify assert_template to use instrumentationCarlhuda2010-03-171-52/+0
|
* Install url helpers on module instance so they can be accessedJoshua Peek2010-03-171-5/+13
| | | | globally
* Eliminate warnings for AM on 1.8wycats2010-03-161-1/+0
|
* Another missing requirewycats2010-03-161-0/+1
|
* Make sure options[:anchor] is correct in shorthand caseswycats2010-03-161-2/+5
|
* Do not always include the named URL helpers into AC::Base and AV::Base.Carl Lerche2010-03-162-3/+16
|
* Make RouteSet#finalize! a NOOP if it's been called already. Call finalize! ↵Carl Lerche2010-03-161-0/+5
| | | | the first time call() and url_for() are called if the RouteSet has not been finalized yet.
* Integration test url options should account for :protocol not just https?Jeremy Kemper2010-03-151-8/+2
|
* Revert "Reinstate old default_url_options method signature"Jeremy Kemper2010-03-151-1/+1
| | | | This reverts commit 5913dd478150710fc0b72a0568f68e13c958d6bc.
* Reinstate old default_url_options method signatureJeremy Kemper2010-03-151-1/+1
|
* Don't force singularization of singleton resource names, e.g. /preferences ↵Andrew White2010-03-151-8/+8
| | | | | | [#4089 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge branch 'master' of gitproxy:rails/railsJosé Valim2010-03-103-16/+69
|\
| * skip_relative_url_root url_for option is deadJoshua Peek2010-03-092-3/+1
| |
| * Allow default_url_options to be set on route setJoshua Peek2010-03-092-0/+9
| |
| * RouteSet#rewrite => url_forJoshua Peek2010-03-092-3/+2
| |
| * Unused RouteSet#url_for is hogging a good method nameJoshua Peek2010-03-091-13/+4
| |
| * Move AC::UrlRewriter onto route setJoshua Peek2010-03-092-1/+57
| |
* | Remove uneeded methods.José Valim2010-03-101-15/+0
|/
* Refactor the RouteSet so it uses a Generator object instead of one huge method.wycats2010-03-091-87/+109
|
* Reinstate default_url_options and remove url_options= writerJeremy Kemper2010-03-081-47/+19
|
* Remove outdated, distracting commented codeJeremy Kemper2010-03-081-25/+0
|
* Now that class_attribute creates an instance method, remove it to avoid ↵wycats2010-03-081-1/+2
| | | | deprecation warnings ;)
* 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 []