Ticket #149 (new enhancement)
[PATCH] Funky Routes
| Reported by: | judofyr | Owned by: | somebody |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | camping.rb | Version: | |
| Keywords: | Cc: |
Description
Just making routes a little more DRY. Not important, but just a nice little feature. Even though we all have access to commit, I don't feel I have the right to do it. What is most important DRY or bytes?
Before:
class Post < R '/post' ... class PostNew < R '/post/new' ... class PostDelete < R '/post/delete' ... class Testing < R '/post/delete/boh ...
After:
class Post < R '/post' ... class PostNew < Post '/new' ... class PostDelete < Post '/delete' ... # It's recursive: class Testing < PostDelete '/boh' ...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
