This project is archived and is in readonly mode.
Allow per-request controller_path.
Reported by David Masover | September 30th, 2008 @ 04:32 AM | in 2.x
Don't let the description fool you -- it's a trivial, two-line patch.
This is about how ActionController::Base#controller_path is used.
From the commit summary:
The instance method calls the class method by default. With this change, controllers can override the instance method to set a dynamic controller_path for a given request.
Rationale:
It is possible to override the whole view_path (with prepend_view_path and append_view_path) for all requests, or for an individual request. It seems that the controller_path is a smaller change.
In fact, I believe that any argument against doing this would apply even moreso to modifying the view_path.
Comments and changes to this ticket
-
Michael Koziarski September 30th, 2008 @ 11:13 AM
- Assigned user set to josh
Josh is the guy who's done the most work here
-
Repository September 30th, 2008 @ 06:08 PM
- State changed from new to resolved
(from [e69b506abd40222c87be28398c5191db160740cb]) Call controller_path instance method so it can be easily overridden [#1141 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 1141 Allow per-request controller_path. (from [e69b506abd40222c87be28398c5191db160740cb]) Call co...