Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-06 07:29:41 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-06 07:29:41 +0300
commit8952fc015fae476a20051c01cf4217d82d30c83d (patch)
tree07f05c55ff385ce176e148116a04f7abb3a9558a /app/finders
parentc5be267e40c0ba05c2a7de6a71d154f1b5161160 (diff)
Apply default scope to labels and remove one for notes
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/notes_finder.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb
index 6fe15b41060..e2bd0a2560e 100644
--- a/app/finders/notes_finder.rb
+++ b/app/finders/notes_finder.rb
@@ -22,6 +22,7 @@ class NotesFinder
end
# Use overlapping intervals to avoid worrying about race conditions
- notes.where('updated_at > ?', last_fetched_at - FETCH_OVERLAP)
+ notes.where('updated_at > ?', last_fetched_at - FETCH_OVERLAP).
+ order(created_at: :asc, id: :asc)
end
end