aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/deprecated_mapper.rb
Commit message (Collapse)AuthorAgeFilesLines
* adds missing requires for Object#tryXavier Noria2010-08-091-0/+1
|
* Change returning with tapSantiago Pastorino2010-07-251-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* RouteSet should also handle anonymous classes.José Valim2010-07-051-2/+2
|
* Define a convention for descendants and subclasses.José Valim2010-07-051-2/+2
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* Fixes for "router" and "routes" terminologyWincent Colaiuta2010-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f7ba614c2db improved the internal consistency of the different means of accessing routes, but it introduced some problems at the level of code comments and user-visible strings. This commit applies fixes on three levels: Firstly, we remove or replace grammatically invalid constructs such as "a routes" or "a particular routes". Secondly, we make sure that we always use "the router DSL" or "the router syntax", because this has always been the official terminology. Finally, we make sure that we only use "routes" when referring to the application-specific set of routes that are defined in the "config/routes.rb" file, we use "router" when referring on a more abstract level to "the code in Rails used to handle routing", and we use "routing" when we need an adjective to apply to nouns such as "url_helpers. Again this is consistent with historical practice and other places in the documentation. Note that this is not a sweep over the entire codebase to ensure consistent usage of language; it is just a revision of the changes introduced in commit f7ba614c2db. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deprecate the old router DSL. Since it is still used intensively across ↵José Valim2010-06-281-0/+2
| | | | ActionPack test suite, patches that translates Rails internal tests to the new router DSL are welcome (note though that a few tests shouldn't be translated since they are testing exactly the old mapper API, like the ones in actionpack/test/controller/resource_test.rb and actionpack/test/controller/routing_test.rb)
* Take out documentation from DeprecatedMapper to discourage its usage.Rizwan Reza2010-06-211-384/+0
|
* action_dispatch/routing/deprecated_mapper needs with_optionsMatthew Rudy Jacobs2010-04-141-0/+1
| | | | | | [#4398 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge commit 'rails/master'Xavier Noria2010-03-311-0/+2
|\
| * adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+2
| |
* | Mark ActionDispatch::Routing::DeprecatedMapper as nodoc to hide old ↵Andrew White2010-03-311-1/+1
|/ | | | documentation until it's removed
* Remove implicit controller namespacing from new dslJoshua Peek2010-02-281-0/+25
|
* Remove ActionController::Base.resources_path_namesCarl Lerche2010-02-241-7/+8
|
* Move controller namespace tracking into route set so it getsJoshua Peek2009-12-021-1/+1
| | | | reloaded in dev mode
* Fix generating params with optional defaults [#3404 state:resolved]Joshua Peek2009-12-011-1/+1
|
* Extract Routing.controller_constraintsJoshua Peek2009-11-231-2/+1
|
* Restore `rake routes` [#3402 state:resolved]Joshua Peek2009-10-241-2/+1
|
* New routing dslJoshua Peek2009-10-201-0/+879