Files
osem/app/serializers/conferences_array_serializer.rb
Stella Rouzi 9292b79c78 houndci fixes
2014-06-30 15:46:51 +03:00

10 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