This project is archived and is in readonly mode.
Adding #environment to new template_runner
Reported by Aaron Quint | December 22nd, 2008 @ 05:57 AM | in 2.x
Hey All
The attached patch extracts some functionality from the TemplateRunner#gem method to allow arbitrary code/text to be added to the Rails::Initializer block using #environment. This makes it easy to add load_paths, set the load order, etc. using the new bin/rails templates.
Thanks!
--AQ
Comments and changes to this ticket
-
Pratik December 22nd, 2008 @ 11:11 AM
- Assigned user set to Pratik
-
Aaron Quint December 22nd, 2008 @ 05:20 PM
Hey Pratik
I also noticed there are no tests for the template_runner in general - I'm happy to contribute these if there's a desire/interest
-
Pratik December 22nd, 2008 @ 05:24 PM
Hey Aaron,
That'd be great! You can open a new ticket for that and assign to me.
Thanks for working on this.
-
Aaron Quint December 23rd, 2008 @ 02:44 AM
Hey Pratik
I am a man of my word - I wrote a full test suite that encompasses this tickets patch and created a ticket for it: #1618
So you can close this ticket in favor of that one.
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
Tags
Referenced by
- 1618 Test Coverage and refactor of Template Runner When wanting to add some additional features to Rails new...