Module: RendersNotes
- Included in:
- API::Helpers::NotesHelpers, NotesActions, Preloaders::Projects::NotesPreloader, Projects::CommitController, Projects::DiscussionsController, Projects::MergeRequests::DiffsController, Projects::NotesController, SnippetsActions
- Defined in:
- app/controllers/concerns/renders_notes.rb
Instance Method Summary collapse
-
#prepare_notes_for_rendering(notes) ⇒ Object
rubocop:disable Gitlab/ModuleWithInstanceVariables.
Instance Method Details
#prepare_notes_for_rendering(notes) ⇒ Object
rubocop:disable Gitlab/ModuleWithInstanceVariables
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/concerns/renders_notes.rb', line 5 def prepare_notes_for_rendering(notes) preload_noteable_for_regular_notes(notes) preload_note_namespace(notes) (notes, @project) (notes) Notes::RenderService.new(current_user).execute(notes) notes end |