Make method supports_award?
public in Note
This commit is contained in:
parent
7af67f619a
commit
83d8185f5a
1 changed files with 2 additions and 2 deletions
|
@ -367,13 +367,13 @@ class Note < ActiveRecord::Base
|
|||
self.note = award_emoji_name
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def supports_awards?
|
||||
noteable.kind_of?(Issue) ||
|
||||
noteable.is_a?(MergeRequest)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def contains_emoji_only?
|
||||
(note =~ /\A:[-_+[:alnum:]]*:\s?\z/) ? true : false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue