diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-26 07:33:01 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-26 07:33:01 +0300 |
commit | 46cc034e05448ff3f515c8e6ad2f72e3e0d657cc (patch) | |
tree | feaee2a04b7b4e15dbafbfdd99cf0d366d0392a2 /app/models/note.rb | |
parent | 44ad0743349ea0495ff1b956d14ff244dbbe5b80 (diff) |
Add resolved_at and resolved_by_id to DiffNote
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index b6b2ac6aa42..2aff2b40a48 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -128,6 +128,18 @@ class Note < ActiveRecord::Base true end + def resolvable? + false + end + + def resolved? + false + end + + def to_be_resolved? + resolvable? && !resolved? + end + def discussion_id @discussion_id ||= if for_merge_request? |