Class: SinglepartNoteRenderer

Inherits:
NoteRenderer show all
Defined in:
public/app/models/note_renderer.rb

Instance Method Summary collapse

Methods inherited from NoteRenderer

#build_label, for, inherited, #render_partial

Instance Method Details

#render(type, note, result) ⇒ Object



90
91
92
93
94
# File 'public/app/models/note_renderer.rb', line 90

def render(type, note, result)
  result['label'] = build_label(type, note)
  result['note_text'] = ASUtils.wrap(note['content']).map { |s| "<p>#{process_mixed_content(s)}</p>" }.join.html_safe
  result
end