Commit 83d8185f authored by Grzegorz Bizon's avatar Grzegorz Bizon

Make method `supports_award?` public in `Note`

parent 7af67f61
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment