Sha256: 4eb8ae89fb171e505f8dd4e8826382aa9a1d6fc7c1bb0da3f7b9c6a8e17ba1d2

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

module CustomerVault
  module ApplicationHelper
    def person_tags(person)
      return if person.tag_list.empty?

      person.tag_list.map { |tag|
        content_tag(:span, class: "tag label label-primary"){
          "#{icon :tag} #{tag}".html_safe
        }
      }.join(" ").html_safe
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
customer_vault-1.2.8 app/helpers/customer_vault/application_helper.rb