Commit 5f595be4b80ae57c92d01dc1c0026566f80e67d4

Authored by Marin Jankovski
1 parent 817f5ff6

Use new gems methods.

app/views/layouts/_init_auto_complete.html.haml
1 1 :javascript
2 2 GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_project_path(@project)}"
3   - GitLab.GfmAutoComplete.Emoji.assetBase = "#{Gitlab.config.gitlab.relative_url_root + '/assets/emoji'}"
  3 + GitLab.GfmAutoComplete.Emoji.assetBase = "#{Gitlab.config.gitlab.relative_url_root + Emoji.asset_path}"
4 4 GitLab.GfmAutoComplete.setup();
... ...
app/views/projects/notes/_note.html.haml
... ... @@ -23,7 +23,7 @@
23 23 %i.icon-thumbs-up
24 24 \+1
25 25 - if note.downvote?
26   - %span.vote.downvote.label.label-error
  26 + %span.vote.downvote.label.label-danger
27 27 %i.icon-thumbs-down
28 28 \-1
29 29  
... ...
config/initializers/gemoji.rb
... ... @@ -1,3 +0,0 @@
1   -# Workaround for https://github.com/github/gemoji/pull/18
2   -require 'gemoji'
3   -Gitlab::Application.config.assets.paths << Emoji.images_path
lib/gitlab/markdown.rb
... ... @@ -152,7 +152,7 @@ module Gitlab
152 152 #
153 153 # Returns boolean
154 154 def valid_emoji?(emoji)
155   - Emoji.names.include? emoji
  155 + Emoji.find_by_name emoji
156 156 end
157 157  
158 158 # Private: Dispatches to a dedicated processing method based on reference
... ...