Class: Decidim::Templates::Template

Inherits:
ApplicationRecord show all
Includes:
Decidim::Traceable
Defined in:
decidim-templates/app/models/decidim/templates/template.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



28
29
30
# File 'decidim-templates/app/models/decidim/templates/template.rb', line 28

def self.log_presenter_class_for(_log)
  Decidim::Templates::AdminLog::TemplatePresenter
end

Instance Method Details

#resource_nameObject



24
25
26
# File 'decidim-templates/app/models/decidim/templates/template.rb', line 24

def resource_name
  [templatable_type.demodulize.tableize.singularize, "templates"].join("_")
end