mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Effective API changes:
- nil serializes to null, not empty string
- dates serialize to IETF RFC 3339 with millisecond precision, not
second precision surrounded by spaces
12 lines
228 B
Ruby
12 lines
228 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EventScheduleSerializer < ActiveModel::Serializer
|
|
include ActionView::Helpers::TextHelper
|
|
|
|
attribute :start_time, key: :date
|
|
attributes :room
|
|
|
|
def room
|
|
object.room.guid
|
|
end
|
|
end
|