Sha256: 0d21dc35597d3b65b861df2fee05054d5b56c6e08617b93c111679aed3189fcd

Contents?: true

Size: 495 Bytes

Versions: 88

Compression:

Stored size: 495 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 admin link for the newsletter.
      #
      # Returns an HTML-safe String.
      def resource_path
        @resource_path ||= h.decidim_admin.newsletter_path(resource)
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.4 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.27.9 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.29.0 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.3 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.27.8 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.29.0.rc4 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.29.0.rc3 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.29.0.rc2 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.29.0.rc1 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.2 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.27.7 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.1 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.27.6 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.26.10 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.26.9 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.0 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.27.5 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.0.rc5 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb
decidim-core-0.28.0.rc4 app/presenters/decidim/admin_log/newsletter_resource_presenter.rb