I have a Rails 3 project where I override some scaffold templates. This is done by placing a new template in lib/templates/erb/scaffold and adding lib to my autoload path in config/application.rb (see Rasilscasts #216).
Now, I'd like to package my work in a gem. (I'm new to gems...)
I cannot figure out how to accomplish this in a gem.
Looking at generators.rb I see there is a configuration for templates dir:
templates_path.concat config.templates
templates_path.uniq!
but I'm not sure how to use it.
I don't think I'm supposed to mess with the lib dir from a gem (or even if I can do that).
So my question is, how do I accomplish this from a gem?
Thanks in advance
jeff