bootstrap3_form_builder 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddc817fe53c8092e66dcd7eca2995694e244b3c7
4
- data.tar.gz: 46f68dc84ff1589abd0d8f8bafd3ba58316cc844
3
+ metadata.gz: da1778ffc1cf874484e6ea5f6f84b9da4beaa95c
4
+ data.tar.gz: 7375cdbbde00efae93e345da94779ebe940dd38b
5
5
  SHA512:
6
- metadata.gz: 617e8916bce502c0365eab4f123f8ab6fec9294ed0a6694ba70eac7109ffadab5c16129a1ed713d6178d3c2c6f4e7921781b0d50ab8eb6717deca9d819e77b5f
7
- data.tar.gz: c66acb6ebb27109e86fed5969df45acf5cace740847d91adc0a5356e5232ee719e22da1aacfc45a55248b4cb6ab035a8d8091dfb0f5a46c7e465acd94282a188
6
+ metadata.gz: 0d2e2f61ff30889f55deb4ded8c76e2512bcac4e028b7c12933383ff3c422c31fd1b9e6382ddbd3be10f104581ce02480cd7843e36bdb98da0c940a942377a14
7
+ data.tar.gz: ad6880a87f32962ac656701135666e1f619f9671b445a9038e7a681979be56e8885529c89c0cebfccb6dc020c49a76917e7dc121a562e718bb79c9369f003106
@@ -141,7 +141,7 @@ Generates form fields that work with Twitter Bootstrap 3.
141
141
  end
142
142
 
143
143
  def control_group_class(label)
144
- if @object.errors.messages[label]
144
+ unless @object.errors.messages[label].blank? && @object.errors.messages[label.to_sym].blank?
145
145
  return "form-group error"
146
146
  end
147
147
 
@@ -1,3 +1,3 @@
1
1
  module Bootstrap3FormBuilder
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Wright