1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

11 commits

Author SHA1 Message Date
Andrew White
ec77498351 Improve rake routes output for redirects - closes #6369. 2012-05-19 11:22:00 +01:00
Łukasz Strzałkowski
5f7bfb7778 Fix inspecting route redirections, closes #6369
This commit fixes route inspection in `rake routes`

Before:

  foo  /foo(.:format) :controller#:action"

After:

  foo  /foo(.:format)  Redirect (301)
2012-05-18 23:55:39 +02:00
Vishnu Atrai
d8996d3cab remove usages of AS::OrderedHash 2012-03-03 23:48:29 +05:30
Guillermo Iguaran
0802dc7f4f Don't hardcode assets route skipped in route inspector 2012-01-14 16:33:21 -05:00
Piotr Sarnacki
9fffef5f46 Refactor RouteInspector 2011-12-26 16:35:38 +01:00
Piotr Sarnacki
28cd098d99 Correctly display rack apps with dynamic constraints in RoutesInspector
If you used dynamic constraint like that:

  scope :constraint => MyConstraint.new do
    mount RackApp => "/foo"
  end

routes were not displayed correctly when using `rake routes`.
This commit fixes it. If you want nice display of dynamic
constraints in `rake routes` output, please just override
to_s method in your constraint's class.
2011-12-26 11:41:45 +01:00
Piotr Sarnacki
c9bb099318 Display mounted engines in rake routes by default 2011-11-25 12:45:58 +01:00
Piotr Sarnacki
0cd3bf8406 Allow to display engine's routes when running rake routes ENGINES=true 2011-11-24 16:16:00 +01:00
Hendy Tanata
010622bb98 On inpsect routes, show :controller and :action to indicate dynamic. 2011-10-29 20:04:33 +08:00
Aaron Patterson
d21e0e2af3 adjust route inspection to work with Journey 2011-09-12 16:50:48 -07:00
Aaron Patterson
7bc6a0098b move route inspecting to an object so that we can more easily test it 2011-09-09 18:50:32 -07:00