Module: AlchemyCrm::Admin::BaseHelper

Defined in:
app/helpers/alchemy_crm/admin/base_helper.rb

Instance Method Summary collapse

Instance Method Details

#contact_count_from_tag(tag) ⇒ Object

Renders a <small> html tag with the contact count for current tag in it.



6
7
8
# File 'app/helpers/alchemy_crm/admin/base_helper.rb', line 6

def contact_count_from_tag(tag)
  ('small', "(#{Contact.tagged_with(tag).count})")
end