Add markdown to events abstract

This commit is contained in:
Ana 2016-08-09 00:05:16 +02:00
parent 60877e9593
commit 72cd463dc7
8 changed files with 10 additions and 19 deletions

View file

@ -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