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 ...@@ -367,13 +367,13 @@ class Note < ActiveRecord::Base
self.note = award_emoji_name self.note = award_emoji_name
end end
private
def supports_awards? def supports_awards?
noteable.kind_of?(Issue) || noteable.kind_of?(Issue) ||
noteable.is_a?(MergeRequest) noteable.is_a?(MergeRequest)
end end
private
def contains_emoji_only? def contains_emoji_only?
(note =~ /\A:[-_+[:alnum:]]*:\s?\z/) ? true : false (note =~ /\A:[-_+[:alnum:]]*:\s?\z/) ? true : false
end 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