mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add markdown to events abstract
This commit is contained in:
parent
60877e9593
commit
72cd463dc7
8 changed files with 10 additions and 19 deletions
|
|
@ -25,15 +25,6 @@ class EventSerializer < ActiveModel::Serializer
|
|||
object.track.try(:guid)
|
||||
end
|
||||
|
||||
def abstract
|
||||
# This should never happen
|
||||
if object.abstract.blank?
|
||||
nil
|
||||
else
|
||||
simple_format(object.abstract).gsub('\n', '')
|
||||
end
|
||||
end
|
||||
|
||||
def length
|
||||
object.event_type.try(:length) || EventType::LENGTH_STEP
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue