gov_uk_date_fields 1.2.2 → 1.2.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: 9f8b5eb70a3464bdb2017240e958a37af3616b00
4
- data.tar.gz: 97bf3cf35e2152dff6a3d1162b99e7a8a1c452c2
3
+ metadata.gz: dc1d7d6bff395c600de14fd3012b83858577f6fc
4
+ data.tar.gz: 3b56befb0f68a9d01458b540198143cbfdd745c0
5
5
  SHA512:
6
- metadata.gz: 3d47c92d9d7f2759f659868915541b4c797bc546633982621e739cbbe9642cb6d8adec5bf5678046c264500c7c29518595b8ae5e2257a27fdfa18d52646bada7
7
- data.tar.gz: 1c08897a17e2637a949369be983d9328bb7f9c70b1ec30d7403a73f6000f8c87d550995b7f95f8f572e8aaef31ef07e08abcd71e7415fbc4fa7a8f8ab0b82d6f
6
+ metadata.gz: bd53a277f38de77162d607692c95157e549eb7e70954cafac3ab20c6686a161d18da8afeca06bbeeb83c0003950b38df121e2161ad5ed6caa3eb6229f5ce43c2
7
+ data.tar.gz: 038cc502b7cfda2d67a585639ef4d9b796daccf81065972600a7430aea15d41e06e8734043bc141bf71d1e7c5fce1f484471b420e45129336c0dc39b9e8b2089
@@ -47,7 +47,7 @@ module GovUkDateFields
47
47
  private
48
48
 
49
49
  def error_for_attr?
50
- @object.errors.keys.include?(@attribute)
50
+ @object.errors.keys.include?(@attribute) && @object.errors[@attribute].any?
51
51
  end
52
52
 
53
53
  def fieldset_required?
@@ -1,3 +1,3 @@
1
1
  module GovUkDateFields
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gov_uk_date_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Richards
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-23 00:00:00.000000000 Z
12
+ date: 2016-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails