Skip to content

Commit

Permalink
allow empty terms if no text found
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalronin committed Mar 28, 2009
1 parent 1350883 commit 5b0a092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b0a092

Please sign in to comment.