Fix bug where it always gave false positives about old generators

This commit is contained in:
Jeremy McAnally 2010-03-31 15:30:43 -05:00
parent 33cbc3509b
commit 93dc581119

View File

@ -189,7 +189,7 @@ module Rails
grep_for("def manifest", g).empty? ? g : nil
end.compact
if files
if !files.empty?
alert(
"Old Rails generator API",
"A plugin in the app is using the old generator API (a new one may be available at http://github.com/trydionel/rails3-generators).",