Sha256: a2c898fe38e1f6caca3c92ed4bfb18d03264584dc903513c33bd5f4bc65476a0
Contents?: true
Size: 502 Bytes
Versions: 25
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
25 entries across 25 versions & 1 rubygems