Module: AlchemyCrm::Admin::BaseHelper
- Defined in:
- app/helpers/alchemy_crm/admin/base_helper.rb
Instance Method Summary collapse
-
#contact_count_from_tag(tag) ⇒ Object
Renders a <small> html tag with the contact count for current tag in it.
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) content_tag('small', "(#{Contact.tagged_with(tag).count})") end |