Ticket #32 (closed defect: fixed)
Change D() to allow :urls override.
| Reported by: | zimbatm | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | Camping 1.5 |
| Component: | bin/camping | Version: | 1.4.2 |
| Keywords: | Cc: |
Description
class R; include Base; end
That class is used when you build a new controller with that magic R() method.
Base is not needed since it is included dynamically Camping::Controller::D(). Also, classes issued by R should not be different that normal classes I think.
Removing the dependency on R has two advantages :
- Around 9 bytes are gained
- R() could now depend on other classes and support class inheritance
I've made some tests and everything seems to work however I might miss some point.
You'll find the patch for camping-unabridged.rb and a test app below. Maybe I should also provide the patch for camping.rb ?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
