class Decidim::Pages::AdminLog::PagePresenter
PagePresenter.new(action_log, view_helpers).present
view_helpers # => this comes from the views
action_log = Decidim::ActionLog.last
directly, but here is an example:
Usage should be automatic and you should not need to call this class
for the ‘AdminLog` log.
This class holds the logic to present a `Decidim::Page`
def action_string
def action_string case action when "update" "decidim.admin_log.page.#{action}" else super end end
def diff_fields_mapping
def diff_fields_mapping { body: :i18n } end
def i18n_labels_scope
def i18n_labels_scope "decidim.pages.admin.models.components" end