aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
Commit message (Collapse)AuthorAgeFilesLines
* Leave escaping up to JourneyJeremy Kemper2011-10-131-4/+3
|
* fix requireAaron Patterson2011-10-061-1/+1
|
* Fix named routes modifying argumentsPawel Pierzchala2011-09-221-3/+4
|
* removing backwards compatibility moduleAaron Patterson2011-09-121-5/+4
|
* unfactor the Route class to private factory methodsAaron Patterson2011-09-121-5/+42
|
* reduce dependencies of external objects in the Route classAaron Patterson2011-09-121-3/+3
|
* delete unused code, pass path explicitly to journeyAaron Patterson2011-09-121-1/+2
|
* all routes can be stored in the Journey Routes objectAaron Patterson2011-09-121-5/+4
|
* clear! does not need to be called from initializeAaron Patterson2011-09-121-4/+3
|
* reuse the route collection and formatter by clearing themAaron Patterson2011-09-121-6/+10
|
* Instantiate each part of our routing system:Aaron Patterson2011-09-121-7/+8
| | | | | | * A collection of Routes * The Router, which consults the collection of routes * A formatter that consults the collection of routes
* stop freezing the routesAaron Patterson2011-09-121-1/+0
|
* stop using a hash for parameterizingAaron Patterson2011-09-121-11/+9
|
* Switching rack-mount to journey.Aaron Patterson2011-09-121-1/+2
|
* TODO fix explicitly loading exceptations, autoload removedVishnu Atrai2011-07-111-0/+1
|
* prepend the assets route instead of appending, closes #436José Valim2011-05-081-3/+6
|
* Use #remove_possible_method instead hereSebastian Martinez2011-05-041-2/+3
|
* raise an error if the old router draw method is used, along with a message ↵Josh Kalderimis2011-05-031-0/+5
| | | | advising them to either upgrade their routes or add rails_legacy_mapper to their Gemfile
* Explicitly define main_app proxyPiotr Sarnacki2011-04-251-2/+1
|
* stop being clever and just call methods on the Route objectAaron Patterson2011-03-081-1/+1
|
* Raise ArgumentError if route name is invalid [#6517 state:resolved]Andrew White2011-03-061-0/+2
|
* use newer class cache apiAaron Patterson2011-03-021-1/+1
|
* refactor Reference to a ClassCache object, fix lazy lookup in Middleware so ↵Aaron Patterson2011-03-011-2/+3
| | | | that anonymous classes are supported
* Fix assert_recognizes with block constraints [#5805 state:resolved]Andrew White2011-02-131-1/+3
|
* use raise to create exceptions and to set the backtraceAaron Patterson2011-01-121-1/+1
|
* The redirect routing method now allows for a hash of options which only ↵Josh Kalderimis2010-11-301-44/+18
| | | | changes the relevant parts of the url, or an object which responds to call can be supplied so common redirect rules can be easily reused. This commit includes a change where url generation from parts has been moved to AD::Http::URL as a class method.
* Speed up subdomain and domain calculus.José Valim2010-11-231-14/+6
|
* :subdomain, :domain and :tld_length options can now be used in url_for, ↵Josh Kalderimis2010-11-231-6/+32
| | | | | | allowing for easy manipulation of the host during link generation. Signed-off-by: José Valim <jose.valim@gmail.com>
* Properly reload routes defined in class definitionPiotr Sarnacki2010-09-301-0/+1
| | | | | | | | | | | | | | | | | Sometimes it's easier to define routes inside Engine or Application class definition (e.g. one file applications). The problem with such case is that if there is a plugin that has config/routes.rb file, it will trigger routes reload on application. Since routes definition for application is not in config/routes.rb file routes_reloader will fail to reload application's routes properly. With this commit you can pass routes definition as a block to routes method, which will allow to properly reload it: class MyApp::Application < Rails::Application routes do resources :users end end
* Allow mounting engines at '/'Piotr Sarnacki2010-09-301-1/+1
| | | | | Without that commit script_name always become '/', which results in paths like //posts/1 instead of /posts/1
* Merge remote branch 'miloops/warnings'José Valim2010-09-291-1/+1
|\
| * Use redefine_method instead define_method, it may be already defined.Emilio Tagua2010-09-281-1/+1
| |
| * Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-271-8/+2
| |
* | Move uri parser to AS as URI.parser method to reuse it in AP and ARes.Emilio Tagua2010-09-281-8/+2
| |
* | Fix tests on 1.9.2.José Valim2010-09-281-5/+0
| |
* | Properly initialize variables inside the initialize method.José Valim2010-09-271-3/+8
|/
* Define @_routes inside method, makes more sense and will be initialized when ↵Emilio Tagua2010-09-271-1/+1
| | | | | | called anywhere. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-4/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Merge remote branch 'miloops/warnings'José Valim2010-09-271-2/+12
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/url_for.rb
| * Remove old method before redefining it.Emilio Tagua2010-09-271-0/+2
| |
| * Remove warning "URI.unescape is obsolete" from actionpack.Emilio Tagua2010-09-271-2/+10
| |
* | Hash#empty? is faster than Enumerable#any? when used on a Hash.thedarkone2010-09-271-1/+1
| |
* | No need to create a separate lambda for each call.thedarkone2010-09-271-15/+14
|/
* Refactor routing methods.Emilio Tagua2010-09-221-6/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add RouteSet#appendCarl Lerche2010-09-171-4/+12
| | | Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.
* Change app to main_app in mounted_helpersPiotr Sarnacki2010-09-081-1/+1
|
* Do not require passing :app to mounted helpers, it's actually useless and ↵Piotr Sarnacki2010-09-081-1/+1
| | | | not DRY
* Removed deprecated RouteSet API, still many tests failPiotr Sarnacki2010-09-051-9/+3
|
* Implemented RouteSet#default_scope, which allows to set the scope for the ↵Piotr Sarnacki2010-09-031-2/+6
| | | | entire routes object
* Move RoutesProxy to separate filePiotr Sarnacki2010-09-031-32/+0
|