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

View File

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