This project is archived and is in readonly mode.
Template Runner - add two new methods
Reported by Dinshaw | March 15th, 2009 @ 02:49 AM | in 3.0.2
This adds:
-
add_observer - (adds an ':something_observer' to environment.rb)
-
application_include - ('include Something' to application_controller.rb)
This makes it so you could get things like restful_authentication running from the template.
Comments and changes to this ticket
-
Dinshaw March 15th, 2009 @ 03:02 AM
- Tag changed from patch to patch, template, template_runner
Just pointing out that you might need this patch to get everything working: http://rails.lighthouseapp.com/p...
-
Pratik March 15th, 2009 @ 10:03 AM
- Assigned user set to Pratik
-
Pratik August 9th, 2009 @ 10:31 PM
- Assigned user changed from Pratik to José Valim
-
José Valim August 9th, 2009 @ 10:35 PM
- Milestone cleared.
Pratik suggested adding a method that inserts into any class body. Something like inject_into_class.
-
José Valim August 30th, 2009 @ 05:00 PM
Just added inject_into_class. I'm wondering if add_observer should create the observer file as well or just change the config/environment.
-
José Valim October 17th, 2009 @ 03:51 PM
- State changed from new to incomplete
Marking as incomplete until I have some feedback on add_observer or someone else have a similar request.
-
José Valim January 3rd, 2010 @ 11:33 AM
- State changed from incomplete to stale
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to
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>