report_serializer.rb (157B)
- # frozen_string_literal: true
- class REST::ReportSerializer < ActiveModel::Serializer
- attributes :id, :action_taken
- def id
- object.id.to_s
- end
- end
git clone https://hacktivis.me/git/mastofe.git
report_serializer.rb (157B)
- # frozen_string_literal: true
- class REST::ReportSerializer < ActiveModel::Serializer
- attributes :id, :action_taken
- def id
- object.id.to_s
- end
- end