meleyal/backbone-on-rails — pull request #27 by mulderp (2012-06-27 19:38:24+00:00)
Title: Insert Backbone dependencies before require_tree

I added some files for testing the generator, and I use

inject_into_file to insert (a method defined by Thor) and discovered here:

https://github.com/rails/rails/blob/d246da1603a9833532a5eebb3836be25a87dfaa6/railties/lib/rails/generators/actions.rb#L279

The devise gem patches the config(routes.rb in a similar manner.

Eventually, you want to reduce the files in the test rails_app or do some reformatting.
Hope you like this.