Module: Doorkeeper::DashboardHelper
- Defined in:
- app/helpers/doorkeeper/dashboard_helper.rb
Instance Method Summary collapse
Instance Method Details
#doorkeeper_errors_for(object, method) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/doorkeeper/dashboard_helper.rb', line 5 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 |
#doorkeeper_submit_path(application) ⇒ Object
17 18 19 |
# File 'app/helpers/doorkeeper/dashboard_helper.rb', line 17 def doorkeeper_submit_path(application) application.persisted? ? oauth_application_path(application) : oauth_applications_path end |