osem-fcy/app/serializers/conferences_array_serializer.rb
2014-06-30 15:46:51 +03:00

9 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