Sha256: 8f7766831502f6db08c53064ea692715bfce2e3b359eb0ac8e1d3670691d87c3
Contents?: true
Size: 734 Bytes
Versions: 5
Compression:
Stored size: 734 Bytes
Contents
module Dorsale::CustomerVault::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 def customer_vault_link_form_path(person = @person, link = @link) if link.new_record? customer_vault_person_links_path(person, link) else customer_vault_person_link_path(person) end end def person_types_for_filter_select [ [Dorsale::CustomerVault::Corporation.t, "Dorsale::CustomerVault::Corporation"], [Dorsale::CustomerVault::Individual.t, "Dorsale::CustomerVault::Individual"], ] end end
Version data entries
5 entries across 5 versions & 1 rubygems