Sha256: bc7e4de0f1b36d0b8883e1ded5ec41d8dccbf8b214b2467fbd9b31745885564f

Contents?: true

Size: 439 Bytes

Versions: 14

Compression:

Stored size: 439 Bytes

Contents

module Doorkeeper::DashboardHelper
  def doorkeeper_errors_for(object, method)
    if object.errors[method].present?
      object.errors[method].map do |msg|
        content_tag(:span, class: 'help-block') do
          msg.capitalize
        end
      end.reduce(&:join).html_safe
    end
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
doorkeeper-2.2.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-3.0.0.rc1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.2.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.2.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.1.4 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.1.3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.1.2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.1.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.1.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.0.1 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.0.0 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.0.0.rc3 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.0.0.rc2 app/helpers/doorkeeper/dashboard_helper.rb
doorkeeper-2.0.0.alpha1 app/helpers/doorkeeper/dashboard_helper.rb