Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add support for other types of routing constraints | Andrew White | 2013-01-15 | 2 | -10/+25 | |
| | | | | | | | | | | | | | | This now allows the use of arrays like this: get '/foo/:action', to: 'foo', constraints: { subdomain: %w[www admin] } or constraints where the request method returns an Fixnum like this: get '/foo', to: 'foo#index', constraints: { port: 8080 } Note that this only applies to constraints on the request - path constraints still need to be specified as Regexps as the various constraints are compiled into a single Regexp. | |||||
* | Raise correct exception now Journey is integrated. | Andrew White | 2013-01-15 | 1 | -1/+6 | |
| | | | | | | | Now that Journey has been integrated into ActionDispatch we can raise the exception ActionController::UrlGenerationError directly rather than raising the internal Journey::Router::RoutingError and then have ActionDispatch::Routing::RouteSet#generate re-raise the exception. | |||||
* | access `@path` and `@routes` via reader methods in journey | Gosha Arinich | 2013-01-07 | 2 | -3/+3 | |
| | ||||||
* | refactor Journey::Routes | Gosha Arinich | 2013-01-07 | 1 | -12/+11 | |
| | | | | | * prefer do-end for multiline blocks * prefer or-equals over returns with checks | |||||
* | Refactor to not call path.ast twice | Carlos Antonio da Silva | 2013-01-06 | 1 | -2/+3 | |
| | ||||||
* | refactor Route#ast to use or-equals and block, instead of return with a cond | Gosha Arinich | 2013-01-06 | 1 | -5/+4 | |
| | ||||||
* | remove another unnecessary dup | Gosha Arinich | 2013-01-02 | 1 | -5/+3 | |
| | ||||||
* | remove unnecessary #dup | Gosha Arinich | 2013-01-02 | 1 | -2/+1 | |
| | ||||||
* | Fix indentation issuing warning | Carlos Antonio da Silva | 2012-12-20 | 1 | -1/+1 | |
| | ||||||
* | update AD::Journey to follow Rails coding conventions | Francesco Rodriguez | 2012-12-20 | 16 | -437/+439 | |
| | ||||||
* | :nodoc: Journey because is not part of the public API [ci skip] | Francesco Rodriguez | 2012-12-19 | 20 | -78/+75 | |
| | ||||||
* | remove code for Ruby 1.8.x support | Francesco Rodriguez | 2012-12-19 | 1 | -7/+2 | |
| | ||||||
* | Remove the actual extension file as well [ci skip] | Andrew White | 2012-12-19 | 1 | -11/+0 | |
| | ||||||
* | Remove obsolete Hash extension needed for Ruby 1.8.x support | Andrew White | 2012-12-19 | 1 | -1/+0 | |
| | | | | [ci skip] | |||||
* | Integrate Journey into Action Dispatch | Andrew White | 2012-12-19 | 25 | -0/+2333 | |
Move the Journey code underneath the ActionDispatch namespace so that we don't pollute the global namespace with names that may be used for models. Fixes rails/journey#49. |