API: don't expose 'updated_at' for notes

This commit is contained in:
Nihad Abbasov 2012-11-29 14:41:24 -08:00
parent 24047e1e8d
commit 2a98a060ca
2 changed files with 2 additions and 3 deletions

View file

@ -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"
}
]
```

View file

@ -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