CMSgov/dpc-app

View on GitHub
dpc-admin/app/helpers/tags_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TagsHelper
  def confirm_text(tag)
    "Are you sure? #{tag.taggings.count} records have this tag."
  end

  def available_tags(tag_type)
    Tag.where.not(id: tag_type.tag_ids)
  end
end