Required changes for consistent controller & feature results

This commit is contained in:
James Mason 2018-09-29 15:56:12 -07:00
parent c3e6f02b46
commit ac3be77219
3 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,7 @@
#
# Needed in order to add the API version number to the conferences array
#
class ConferencesArraySerializer < ActiveModel::ArraySerializer
class ConferencesArraySerializer < ActiveModel::Serializer::CollectionSerializer
def as_json(*args)
json = super
json.merge!(version: 1)