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.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.0.rc2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.26.0.rc1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.0.rc4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.0.rc3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.0.rc2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.25.0.rc1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.23.6 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.23.5 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.0 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.0.rc2 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.23.4 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.24.0.rc1 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb
decidim-core-0.23.3 app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb