diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2015-08-12 15:39:58 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2015-08-12 17:02:33 -0400 |
commit | 95f8f7c729a3a14ca6408ac050eb7bef6bb6fec4 (patch) | |
tree | a6704cd9812cf06af256033dd7b64d23ae05f0d1 /app/models/note.rb | |
parent | cd579cb2ff45f3fc1513bb6ea74b53a2229276ae (diff) | |
download | gitlab-ce-95f8f7c729a3a14ca6408ac050eb7bef6bb6fec4.tar.gz |
api: add 'system', 'upvote', and 'downvote' fields to note queries
This reverts commit 4c586dc7c217b3e43956919fa752a8fa4e16acb9.
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index a99d428b02d..913a8c00337 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -360,6 +360,10 @@ class Note < ActiveRecord::Base create_new_cross_references!(project, author) end + def system? + read_attribute(:system) + end + def editable? !read_attribute(:system) end |