Add markdown to users biography
Closes https://github.com/openSUSE/osem/issues/1090 Closes https://github.com/openSUSE/osem/issues/701
This commit is contained in:
parent
72cd463dc7
commit
eee4e4f22c
8 changed files with 11 additions and 14 deletions
|
|
@ -6,12 +6,4 @@ class SpeakerSerializer < ActiveModel::Serializer
|
|||
def name
|
||||
object.name
|
||||
end
|
||||
|
||||
def biography
|
||||
if object.biography.blank?
|
||||
nil
|
||||
else
|
||||
simple_format(object.biography).gsub('\n', '')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue