rails/rails_upgrade — pull request #19 by amontano (2012-04-27 05:17:45+00:00)
Title: Running the upgrade check on engines

Hi,

I love this plugin, but found a drawback. It only runs the battery of tests in the main app, and not for controllers, views, models, etc. found in engines. So I added a BASE_PATH parameter to the rails:upgrade:check task so that a path to the plugin's folder can be specified.

So this now works: rake rails:upgrade:check BASE_PATH=vendor/plugins/XXXX

Of course such parameter is optional so it doesn't break the original syntax. It was a very simple change, but I thought it was extremely useful in my own projects, so I thought I share.

Thank you for taking the time to read this.

Take care,
Andres Montano
Tibetan and Himalayan Library, University of Virginia