Sha256: 7aa39f8737f43a59f721d8fb86816a8f503579eee9f040785b4414ca107acfcd

Contents?: true

Size: 520 Bytes

Versions: 74

Compression:

Stored size: 520 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_admin.oauth_application_path(resource)
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.9 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.5 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.0.rc5 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.28.0.rc4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.8 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.7 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.5 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.0.rc2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.27.0.rc1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb