Sha256: 9d96047ee277b3201bfd16bb06879732cee9c711718cc2fa095657a46e54328c

Contents?: true

Size: 502 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

Version Path
doorkeeper-5.0.3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.1.0.rc2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.1.0.rc1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.0.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-5.0.1 app/helpers/doorkeeper/dashboard_helper.rb