This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
20 lines
312 B
Ruby
20 lines
312 B
Ruby
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
|