Class: Decidim::AreaType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::AreaType
- 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_name ⇒ Object
21 22 23 |
# File 'app/models/decidim/area_type.rb', line 21 def translated_name Decidim::AreaTypePresenter.new(self).translated_name end |