diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-11-29 14:41:24 -0800 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-11-29 14:41:24 -0800 |
commit | 2a98a060caccd82ec8cd9bcead886142f766c069 (patch) | |
tree | 4a37fcf493c9748b40d2b7c839a5854e30059319 | |
parent | 24047e1e8dca4baf58e1533e3e7fcfa1e16d159e (diff) | |
download | gitlab-ce-2a98a060caccd82ec8cd9bcead886142f766c069.tar.gz |
API: don't expose 'updated_at' for notes
-rw-r--r-- | doc/api/notes.md | 3 | ||||
-rw-r--r-- | lib/api/entities.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/notes.md b/doc/api/notes.md index 3d8309d3b9d..24f86cca900 100644 --- a/doc/api/notes.md +++ b/doc/api/notes.md @@ -20,8 +20,7 @@ GET /projects/:id/notes "blocked": false, "created_at": "2012-05-23T08:00:58Z" }, - "updated_at":"2012-11-27T19:16:44Z", - "created_at":"2012-11-27T19:16:44Z" + "created_at": "2012-11-27T19:16:44Z" } ] ``` diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b792d3fbf8d..f985636aa10 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -73,7 +73,7 @@ module Gitlab expose :id expose :note, as: :body expose :author, using: Entities::UserBasic - expose :updated_at, :created_at + expose :created_at end class MRNote < Grape::Entity |