Sha256: 9b28d25c56fc27dc2b6cd6b2bda9e38108361f494d0a0045acfa8586b7f40aec

Contents?: true

Size: 509 Bytes

Versions: 17

Compression:

Stored size: 509 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: "invalid-feedback") 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

17 entries across 17 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.7.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.7.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.9 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.8 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.7 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.6 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.5 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.4 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.0.rc2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.6.0.rc1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.4 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.5.3 app/helpers/doorkeeper/dashboard_helper.rb