class NoteSerializer < ApplicationSerializer def serialize { **item_properties(:id, :content, :created_at), url: note_path(item, format: :json) } end end