mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-05 03:31:07 -05:00
10 lines
217 B
Ruby
10 lines
217 B
Ruby
#
|
|
# Needed in order to add the API version number to the conferences array
|
|
#
|
|
class ConferencesArraySerializer < ActiveModel::ArraySerializer
|
|
def as_json(*args)
|
|
json = super
|
|
json.merge!(version: 1)
|
|
end
|
|
end
|