Sha256: 2fd41426137582ef36a725dd5eed6e0f32cdba832e771cc140eb6b281da60587
Contents?: true
Size: 300 Bytes
Versions: 6
Compression:
Stored size: 300 Bytes
Contents
module Doorkeeper::FormErrorsHelper 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 end
Version data entries
6 entries across 6 versions & 1 rubygems