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