From 5b0a092d2e4e92aa92317cb7012f91a22124af7f Mon Sep 17 00:00:00 2001 From: David Salgado Date: Sat, 28 Mar 2009 18:50:56 +0000 Subject: [PATCH] allow empty terms if no text found --- app/models/cloud.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/cloud.rb b/app/models/cloud.rb index 7e93c21..53c41d8 100644 --- a/app/models/cloud.rb +++ b/app/models/cloud.rb @@ -36,7 +36,7 @@ def title # Sometimes the Yahoo! Term Extractor gives back nothing. # Don't save the cloud if that happens. def has_some_terms - if self.terms.size == 0 + if self.terms.size == 0 && !mp.text_for_cloud.blank? errors.add :terms, "must not be empty" end end