Sha256: cd03034944f575b0d5b00c48e7db9c31619007893f34e579f3efb202255814fd

Contents?: true

Size: 521 Bytes

Versions: 14

Compression:

Stored size: 521 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 OAuthApplication.
    class OAuthApplicationResourcePresenter < Decidim::Log::ResourcePresenter
      private

      # Private: Finds the admin link for the OAuthApplication.
      #
      # Returns an HTML-safe String.
      def resource_path
        @resource_path ||= h.decidim_system.oauth_application_path(resource)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.9 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.29.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.8 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.29.0.rc4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.29.0.rc3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.29.0.rc2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.29.0.rc1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.7 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.6 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb