mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-24 22:11:19 -05:00
12 lines
265 B
Ruby
12 lines
265 B
Ruby
# frozen_string_literal: true
|
|
|
|
#
|
|
# Needed in order to add the API version number to the conferences array
|
|
#
|
|
class ConferencesArraySerializer < ActiveModel::Serializer::CollectionSerializer
|
|
def as_json(*args)
|
|
json = super
|
|
json.merge!(version: 1)
|
|
end
|
|
end
|