diff options
| author | David Cabo <david@calibea.com> | 2012-03-21 00:01:18 +0100 |
|---|---|---|
| committer | David Cabo <david@calibea.com> | 2012-03-21 00:01:18 +0100 |
| commit | f6634ab5314ca96c0d7017d7e5be19b1f9b926db (patch) | |
| tree | 295c05a17dc35d0177ff1375d75c5a48ec8ccbac | |
| parent | 1bde9c9484cc71c94849b1c1b7dd39b881b3a6a8 (diff) | |
Improve handling of nil for public body notes
| -rw-r--r-- | app/models/public_body.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 961fa3cbb..604b6d51a 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -527,7 +527,7 @@ class PublicBody < ActiveRecord::Base end def has_notes? - return self.notes != "" + return !self.notes.nil? && self.notes != "" end def notes_as_html self.notes |
