Welcome to mirror list, hosted at ThFree Co, Russian Federation.

award_emoji_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa134cea31c6ebbab9278b5ac65bc23d0a05511c (plain)
1
2
3
4
5
6
7
8
9
module AwardEmojiHelper
  def toggle_award_url(awardable)
    if @project
      url_for([:toggle_award_emoji, @project.namespace.becomes(Namespace), @project, awardable])
    else
      url_for([:toggle_award_emoji, awardable])
    end
  end
end