osem-fcy/app/serializers/conferences_array_serializer.rb

12 lines
265 B
Ruby
Raw Normal View History

# 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::Serializer::CollectionSerializer
2013-07-08 10:07:12 +02:00
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