Custom_filter working on status_reference
This commit is contained in:
parent
ff06b04e91
commit
76013b10b4
5 changed files with 23 additions and 3 deletions
9
app/serializers/rest/status_internal_serializer.rb
Normal file
9
app/serializers/rest/status_internal_serializer.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class REST::StatusInternalSerializer < REST::StatusSerializer
|
||||
attributes :reference_texts
|
||||
|
||||
def reference_texts
|
||||
object.references.pluck(:text)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue