summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-05 00:49:58 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-05 00:49:58 +0200
commit0a94640e328ab30dcf90e65ba79242bc1aa77a57 (patch)
tree49599acd6e4dbc50de0491ff174588b1fbf0cf8e /lib/api/notes.rb
parente6c0673ef1108a93928c4d88ba273e12616b836b (diff)
parentde6fa5dd520244e9802b5b486ce9d437556baf31 (diff)
downloadgitlab-ce-0a94640e328ab30dcf90e65ba79242bc1aa77a57.tar.gz
Merge branch 'refactoring/backend'
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index 4875ac4c03e..4613db54578 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -13,7 +13,7 @@ module Gitlab
# Example Request:
# GET /projects/:id/notes
get ":id/notes" do
- @notes = user_project.common_notes
+ @notes = user_project.notes.common
present paginate(@notes), with: Entities::Note
end
@@ -25,7 +25,7 @@ module Gitlab
# Example Request:
# GET /projects/:id/notes/:note_id
get ":id/notes/:note_id" do
- @note = user_project.common_notes.find(params[:note_id])
+ @note = user_project.notes.common.find(params[:note_id])
present @note, with: Entities::Note
end