consul/consul

View on GitHub
app/components/admin/tenants/index_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::Tenants::IndexComponent < ApplicationComponent
  include Header
  attr_reader :tenants

  def initialize(tenants)
    @tenants = tenants
  end

  def title
    t("admin.menu.multitenancy")
  end

  private

    def attribute_name(attribute)
      Tenant.human_attribute_name(attribute)
    end
end