#969 hold

[patch] rails-datamapper: dry up and add rails generators

Reported by kristian | July 13th, 2009 @ 07:50 AM

in past I copied a lot of generator for rails around and in dm-more/rails_datamapper I saw this again. so here is one possible solution to dry up generators. and then I just added two more generators.

the idea is to introduce overlay directories for searching template files. this allows reusing existing generators and tell them where to search for the templates files and be able to replace some template files with local versions.

the overlay directories can be also given as command line option which allows projects to keep some project specific templates around somewhere.

in case you like this patch I happy to write up the last missing generator for dm-scaffold which uses unit-test instead of rspec.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »