diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-20 19:50:12 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
commit | 654f10102e051bfcef75add025f6395da58c770d (patch) | |
tree | ef39a9aa1f237f21574cefb7e2f5a19e9f139100 /app/contexts | |
parent | 06ea1228404e56ee3356739a5e9a935f8d570b05 (diff) | |
download | gitlab-ce-654f10102e051bfcef75add025f6395da58c770d.tar.gz |
Remove paging from all notes except the wall
Diffstat (limited to 'app/contexts')
-rw-r--r-- | app/contexts/notes/load_context.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/contexts/notes/load_context.rb b/app/contexts/notes/load_context.rb index 9f8299f52f7..4e2f35040fd 100644 --- a/app/contexts/notes/load_context.rb +++ b/app/contexts/notes/load_context.rb @@ -9,11 +9,11 @@ module Notes @notes = case target_type when "commit" - project.commit_notes(project.commit(target_id)).fresh.limit(20) + project.commit_notes(project.commit(target_id)).fresh when "issue" - project.issues.find(target_id).notes.inc_author.fresh.limit(20) + project.issues.find(target_id).notes.inc_author.fresh when "merge_request" - project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh.limit(20) + project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh when "snippet" project.snippets.find(target_id).notes.fresh when "wall" |