mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-22 16:03:47 -04: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
|