diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-05-13 14:53:31 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-05-13 17:31:58 -0500 |
commit | 7848d54f5b0024f58d8ce2b0259347816be5bdbc (patch) | |
tree | f3b8edbd0be946edec4b2c4e2bd29070e3f68947 /app/models/note.rb | |
parent | 9a3ed265e9c82ee55bc6a17737ef6c5c2a1ad7e3 (diff) | |
download | gitlab-ce-7848d54f5b0024f58d8ce2b0259347816be5bdbc.tar.gz |
Clean up LegacyDiffNote somewhat
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 3bc55870704..7e5bdc09a84 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -112,6 +112,10 @@ class Note < ActiveRecord::Base false end + def active? + true + end + def discussion_id @discussion_id ||= if for_merge_request? |