From fcf23ffecf1f83e751d737e8cc3f0fb909130526 Mon Sep 17 00:00:00 2001 From: Josh Delsman Date: Sat, 17 Jul 2010 13:05:28 +0800 Subject: [PATCH] Don't display if empty --- lib/application_checker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/application_checker.rb b/lib/application_checker.rb index 99e56aa..bdcd9fd 100644 --- a/lib/application_checker.rb +++ b/lib/application_checker.rb @@ -59,7 +59,7 @@ module Rails files += extract_filenames(lines) || [] end - if files + unless files.empty? alert( "Updated syntax for validate_on_* methods", "Validate-on-callback methods (validate_on_create/validate_on_destroy) have been changed to validate :x, :on => :create", @@ -77,7 +77,7 @@ module Rails files += extract_filenames(lines) || [] end - if files + unless files.empty? alert( "Updated syntax for before_validation_on_* methods", "before_validation_on_* methods have been changed to before_validation(:on => :create/:update) { ... }",