bhf 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  .error_explanation
2
2
  %h5= t 'bhf.helpers.validation.header', :error => pluralize(f.object.errors.count, t('bhf.helpers.validation.error')), :name => f.object.class.model_name.human
3
3
  %ul
4
- - f.object.errors.each_pair do |name, message|
4
+ - f.object.errors.each do |name, message|
5
5
  %li= f.error_label name, message
data/lib/bhf/form.rb CHANGED
@@ -5,7 +5,7 @@ module Bhf
5
5
  include ActionView::Helpers::FormTagHelper
6
6
 
7
7
  def error_label(name, message)
8
- label name, "#{object.class.human_attribute_name(name)} #{message.join(', ')}"
8
+ label name, "#{object.class.human_attribute_name(name)} #{message}"
9
9
  end
10
10
 
11
11
  def field_errors(field)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Anton Pawlik