jm / rails_upgrade

Plugin to run checks on your Rails 2.x/3.x to check for obvious upgrade points on the path to 3.0
http://omgbloglol.com
MIT License
68 stars 74 forks source link

Gsub fix, with test #8

Closed pallan closed 13 years ago

pallan commented 13 years ago

We have a large app and the check rake task only found some of our named_scopes. It turns out that the if the first grep result was a comment then all subsequent lines were ignored. This patch fixes that.