Class: GitlabReviewable::ReviewsController

Inherits:
ApplicationController
  • Object
show all
Includes:
DiffHelper
Defined in:
app/controllers/gitlab_reviewable/reviews_controller.rb

Instance Method Summary collapse

Instance Method Details

#diffsObject



10
11
12
13
14
15
16
17
# File 'app/controllers/gitlab_reviewable/reviews_controller.rb', line 10

def diffs
  # @note_counts = Note.where(commit_id: @merge_request.commits.map(&:id)).
  #   group(:commit_id).count
  
  respond_to do |format|
    format.html
  end
end

#discussionObject



19
20
21
22
23
24
25
26
# File 'app/controllers/gitlab_reviewable/reviews_controller.rb', line 19

def discussion 
  @note_counts = Note.where(commit_id: @merge_request.commits.map(&:id)).
    group(:commit_id).count

  respond_to do |format|
    format.html
  end
end