Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove `--builder` option from `rails` command #9401
Ability to use a custom builder by passing
added a commit
this pull request
Feb 24, 2013
Why has this been removed?, i really liked this way to create custom templates. And is there anyway to get some of the same options, like overriding template files or specific builder methods? Fx:
def readme template "README.md" end
Like it says in the documentation plugin_new_generator.rb line 6-12
The template option doesn't have this feature, as it are applied last, so you have to specifically reverse the operations.
I have two cases where i used it myself: Dummy app for testing (which is generated when generating a new engine, but their does not exists any rake method to create it manually), and custom engines.
RefineryCMS is another good example where they have created a whole new custom generator for engines, instead of using all the methods already available in the internal Rails engine builder (see: engine_generator.rb and extension_generator.rb).