Class: Decidim::Proposals::DownloadYourDataProposalSerializer

Inherits:
ProposalSerializer
  • Object
show all
Defined in:
lib/decidim/proposals/download_your_data_proposal_serializer.rb

Instance Method Summary collapse

Methods inherited from ProposalSerializer

#initialize

Constructor Details

This class inherits a constructor from Decidim::Proposals::ProposalSerializer

Instance Method Details

#serializeObject

Serializes a Proposal for download your data feature

Remove the author information as it is the same of the user that requested the data



10
11
12
# File 'lib/decidim/proposals/download_your_data_proposal_serializer.rb', line 10

def serialize
  super.except!(:author)
end