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:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 14:21:49 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 14:21:49 +0400
commit7ec5ff4dbae71d147f413da5cea64116e7eb305d (patch)
tree3d58a385a151e705eec23abd85349c3a1592db17 /app/controllers
parentbbfa4a771ab8ca4745419b8d660af89249e088f4 (diff)
Pass last_fetched_at for notes to javascript
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/notes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb
index 85d042a89b5..3826515d227 100644
--- a/app/controllers/projects/notes_controller.rb
+++ b/app/controllers/projects/notes_controller.rb
@@ -5,9 +5,10 @@ class Projects::NotesController < Projects::ApplicationController
before_filter :authorize_admin_note!, only: [:update, :destroy]
def index
+ current_fetched_at = Time.now
@notes = NotesFinder.new.execute(project, current_user, params)
- notes_json = { notes: [] }
+ notes_json = { notes: [], last_fetched_at: current_fetched_at }
@notes.each do |note|
notes_json[:notes] << {