Files
grecia/app/components/admin/sdg/managers/index_component.rb
taitus 6d5333fc7a Add generic method for header
Unify Header to be able to use it from the admin as from the seg_management.
2020-12-16 13:16:48 +01:00

16 lines
252 B
Ruby

class Admin::SDG::Managers::IndexComponent < ApplicationComponent
include Header
attr_reader :users
def initialize(users)
@users = users
end
private
def title
SDG::Manager.model_name.human(count: 2).upcase_first
end
end