Class: Notes::RenderService
- Inherits:
-
BaseRenderer
- Object
- BaseRenderer
- Notes::RenderService
- Defined in:
- app/services/notes/render_service.rb
Instance Attribute Summary
Attributes inherited from BaseRenderer
Instance Method Summary collapse
-
#execute(notes, options = {}) ⇒ Object
Renders a collection of Note instances.
Methods inherited from BaseRenderer
Constructor Details
This class inherits a constructor from BaseRenderer
Instance Method Details
#execute(notes, options = {}) ⇒ Object
Renders a collection of Note instances.
notes - The notes to render.
Possible options:
requested_path - The request path. project_wiki - The project’s wiki. ref - The current Git reference. only_path - flag to turn relative paths into absolute ones. xhtml - flag to save the html in XHTML
16 17 18 19 20 |
# File 'app/services/notes/render_service.rb', line 16 def execute(notes, = {}) Banzai::ObjectRenderer .new(user: current_user, redaction_context: ) .render(notes, :note) end |