Sha256: 30a454e6a5f861a6754123ef01e45a63b7ca49cd5de3bd0f68e288377383867b
Contents?: true
Size: 493 Bytes
Versions: 92
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true module Decidim module AdminLog # This class extends the default resource presenter for logs, so that # it can properly link to the static page. class StaticPageResourcePresenter < Decidim::Log::ResourcePresenter private # Private: Finds the public link for the given static page.. # # Returns an HTML-safe String. def resource_path @resource_path ||= h.decidim.page_path(resource) end end end end
Version data entries
92 entries across 92 versions & 1 rubygems