Don't display if empty

This commit is contained in:
Josh Delsman 2010-07-17 13:05:28 +08:00 committed by Jeremy McAnally
parent aa218395d3
commit fcf23ffecf
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ module Rails
files += extract_filenames(lines) || [] files += extract_filenames(lines) || []
end end
if files unless files.empty?
alert( alert(
"Updated syntax for validate_on_* methods", "Updated syntax for validate_on_* methods",
"Validate-on-callback methods (validate_on_create/validate_on_destroy) have been changed to validate :x, :on => :create", "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) || [] files += extract_filenames(lines) || []
end end
if files unless files.empty?
alert( alert(
"Updated syntax for before_validation_on_* methods", "Updated syntax for before_validation_on_* methods",
"before_validation_on_* methods have been changed to before_validation(:on => :create/:update) { ... }", "before_validation_on_* methods have been changed to before_validation(:on => :create/:update) { ... }",