Sha256: 6b83a7f155e59304eb3cd5a5bb13d95050c0e2ae915a81a2c9e0c656b3f11859
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 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 newsletter. class NewsletterResourcePresenter < 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_admin.newsletter_path(resource) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-core-0.10.1 | app/presenters/decidim/admin_log/newsletter_resource_presenter.rb |
decidim-core-0.10.0 | app/presenters/decidim/admin_log/newsletter_resource_presenter.rb |