Class: Decidim::AreaType

Inherits:
ApplicationRecord show all
Includes:
Traceable, TranslatableResource
Defined in:
decidim-core/app/models/decidim/area_type.rb

Overview

Area types allows to use different types of areas in participatory space (terriotrial, sectorial, etc.)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object


25
26
27
# File 'decidim-core/app/models/decidim/area_type.rb', line 25

def self.log_presenter_class_for(_log)
  Decidim::AdminLog::AreaTypePresenter
end

Instance Method Details

#translated_nameObject


21
22
23
# File 'decidim-core/app/models/decidim/area_type.rb', line 21

def translated_name
  Decidim::AreaTypePresenter.new(self).translated_name
end