Make method supports_award? public in Note

This commit is contained in:
Grzegorz Bizon 2015-12-03 13:03:50 +01:00
parent 7af67f619a
commit 83d8185f5a

View file

@ -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