osem-fcy/app/serializers/conferences_array_serializer.rb

11 lines
221 B
Ruby
Raw Normal View History

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
json.merge!(:version => 1)
end
end