fixed notes logic
This commit is contained in:
parent
f0f14c8eab
commit
1e689bfba3
6 changed files with 109 additions and 79 deletions
|
@ -16,7 +16,7 @@ class NotesController < ApplicationController
|
|||
when "snippet"
|
||||
then project.snippets.find(params[:target_id]).notes
|
||||
when "wall"
|
||||
then project.common_notes.order("created_at DESC").fresh.limit(60)
|
||||
then project.common_notes.order("created_at DESC").fresh.limit(10)
|
||||
when "issue"
|
||||
then project.issues.find(params[:target_id]).notes.inc_author.order("created_at DESC").limit(20)
|
||||
when "merge_request"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue