2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2013-07-08 10:07:12 +02:00
|
|
|
#
|
|
|
|
|
# Needed in order to add the API version number to the conferences array
|
|
|
|
|
#
|
|
|
|
|
class ConferencesArraySerializer < ActiveModel::ArraySerializer
|
|
|
|
|
def as_json(*args)
|
|
|
|
|
json = super
|
2014-06-24 12:14:53 +03:00
|
|
|
json.merge!(version: 1)
|
2013-07-08 10:07:12 +02:00
|
|
|
end
|
|
|
|
|
end
|