diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2015-11-21 21:36:31 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2015-11-21 21:36:31 +0100 |
commit | 26b12e2c374c8f07abda06a8b19bd116448325f4 (patch) | |
tree | 123d044cbb8c7a3f2bebdddcc859f79eada5c6e8 /app/models/note.rb | |
parent | 319808fc7be2886224541209eeae153d85386bd0 (diff) | |
download | gitlab-ce-26b12e2c374c8f07abda06a8b19bd116448325f4.tar.gz |
Add upvote/downvote fields to merge request and note API to preserve compatibilityfix-award-emoji-api
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index e30be444eb5..1c6345e735c 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -335,6 +335,16 @@ class Note < ActiveRecord::Base read_attribute(:system) end + # Deprecated. Still exists to preserve API compatibility. + def downvote? + false + end + + # Deprecated. Still exists to preserve API compatibility. + def upvote? + false + end + def editable? !system? end |