summaryrefslogtreecommitdiff
path: root/app/controllers/projects/notes_controller.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 12:42:01 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-28 12:42:01 +0200
commit285926918b95f1d771bf4e9c84972d4e55b41ea9 (patch)
treef49cb42a094fbe5e3de08c549349fd99cb567465 /app/controllers/projects/notes_controller.rb
parent7ec5ff4dbae71d147f413da5cea64116e7eb305d (diff)
downloadgitlab-ce-285926918b95f1d771bf4e9c84972d4e55b41ea9.tar.gz
Serialize last_fetched_at as a string with seconds
Diffstat (limited to 'app/controllers/projects/notes_controller.rb')
-rw-r--r--app/controllers/projects/notes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb
index 3826515d227..b5b0446b43f 100644
--- a/app/controllers/projects/notes_controller.rb
+++ b/app/controllers/projects/notes_controller.rb
@@ -5,7 +5,7 @@ class Projects::NotesController < Projects::ApplicationController
before_filter :authorize_admin_note!, only: [:update, :destroy]
def index
- current_fetched_at = Time.now
+ current_fetched_at = Time.now.to_i
@notes = NotesFinder.new.execute(project, current_user, params)
notes_json = { notes: [], last_fetched_at: current_fetched_at }