Sha256: a2c898fe38e1f6caca3c92ed4bfb18d03264584dc903513c33bd5f4bc65476a0

Contents?: true

Size: 502 Bytes

Versions: 25

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module DashboardHelper
    def doorkeeper_errors_for(object, method)
      return if object.errors[method].blank?

      output = object.errors[method].map do |msg|
        content_tag(:span, class: "form-text") do
          msg.capitalize
        end
      end

      safe_join(output)
    end

    def doorkeeper_submit_path(application)
      application.persisted? ? oauth_application_path(application) : oauth_applications_path
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
doorkeeper-5.5.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.0.rc2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.1.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.0.rc1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.4.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.6 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.3.3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.1.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.4.0.rc2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.5 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.3.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.4.0.rc1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.4 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.3.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.3.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.2.1 app/helpers/doorkeeper/dashboard_helper.rb