jcraigk/kudochest

View on GitHub
app/helpers/entity_reference_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module EntityReferenceHelper
  def helpers
    ActionController::Base.helpers
  end

  def channel_link(rid)
    "<#{CHAN_PREFIX}#{rid}>"
  end

  def channel_webref(name)
    helpers.tag.span("#{CHAN_PREFIX}#{name}", class: 'chat-ref')
  end

  def subteam_webref(name)
    helpers.tag.span(name, class: 'chat-ref')
  end
end