Class: Decidim::AreaType

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

Overview

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



25
26
27
# File '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 'app/models/decidim/area_type.rb', line 21

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