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

Version Path
doorkeeper-1.4.2 app/helpers/doorkeeper/form_errors_helper.rb
doorkeeper-1.4.1 app/helpers/doorkeeper/form_errors_helper.rb
doorkeeper-1.4.0 app/helpers/doorkeeper/form_errors_helper.rb
doorkeeper-1.3.1 app/helpers/doorkeeper/form_errors_helper.rb
doorkeeper-1.3.0 app/helpers/doorkeeper/form_errors_helper.rb
doorkeeper-1.2.0 app/helpers/doorkeeper/form_errors_helper.rb