This commit is contained in:
1 parent
e54f927149
commit
e18ca373eb
8 files changed
+2
-140
No files matched your search
@@ -1,10 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class REST::CollectionsWithAccountPreviewsSerializer < ActiveModel::Serializer
|
||||
has_many :collections, serializer: REST::CollectionSerializer
|
||||
has_many :partial_accounts, serializer: REST::PartialAccountSerializer
|
||||
|
||||
def partial_accounts
|
||||
object.accounts
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user