diff options
author | mhasbini <mohammad.hasbini@gmail.com> | 2017-02-28 22:38:19 +0200 |
---|---|---|
committer | mhasbini <mohammad.hasbini@gmail.com> | 2017-02-28 22:38:19 +0200 |
commit | 9f949d4e24c5939b5ea4071c3e86c514b4d82970 (patch) | |
tree | 1011567dfca77bf1d259c2ebfcf8c4f8a0d3a710 /app/models | |
parent | c5b29ed6f36779dbb96f4cdc7b1b0bce8bb8dc5e (diff) | |
download | gitlab-ce-9f949d4e24c5939b5ea4071c3e86c514b4d82970.tar.gz |
add /award slash command
add /award slash command; Allow posting of just an emoji in comment
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index d6d5396afa5..4c97e4a986c 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -231,10 +231,6 @@ class Note < ActiveRecord::Base note =~ /\A#{Banzai::Filter::EmojiFilter.emoji_pattern}\s?\Z/ end - def award_emoji_name - note.match(Banzai::Filter::EmojiFilter.emoji_pattern)[1] - end - def to_ability_name for_personal_snippet? ? 'personal_snippet' : noteable_type.underscore end |