FIX: clean up cooked group bio when bio is removed (#7745)

This commit is contained in:
Maja Komel 2019-06-12 08:18:38 +02:00 committed by Sam
parent 73bf880f74
commit 0a1b16bb16
1 changed files with 3 additions and 1 deletions

View File

@ -209,8 +209,10 @@ class Group < ActiveRecord::Base
end
def cook_bio
if !self.bio_raw.blank?
if self.bio_raw.present?
self.bio_cooked = PrettyText.cook(self.bio_raw)
else
self.bio_cooked = nil
end
end