Files
osem/app/serializers/conferences_array_serializer.rb

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