ph_model 1.0.1 → 1.0.2

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: 75f3ea4942b90c3a4378d456fe347e768bb528ff
4
- data.tar.gz: b4c0cf2983d15a79ed6a078ebd8c832b2490ccb0
3
+ metadata.gz: 18eb5a8b10e9378536d448b174f91f656023547c
4
+ data.tar.gz: 98833d553696e61f645270860eab78de9e46a9a8
5
5
  SHA512:
6
- metadata.gz: d3aedf877ec022e4fffbdbab6d88e4394fb49a5bec17f4792ebfa9362c17763617c60d56c9b87998eaeed4abf7c8135ce11902d2c494ecb48da00a3860f434c3
7
- data.tar.gz: 0a141fe481993fff323fa11aaac43273ee62cc3e27b516a8a83af27e11e47238bb0046613676ecacd342b1386f5db957b6f9373723972263cd2c7a19684e1919
6
+ metadata.gz: 4def997bc8690a1a6273a3fe9006013996980c098bad2a4031fdfc2b3ebeab40eb1ba4a904ef4280afaa177671050bf4d414fc4025ae412b267d48372f1ea440
7
+ data.tar.gz: 8b99a104a0715cccba40ad6b1f837d828c72dba5b40e87dbc1f71d3cfb4a0f3a191b83caa8af2a2ac3c0fbdf2ea05e445002f82f07fc546ea3c69c4839487171
@@ -23,7 +23,7 @@ module PhModel
23
23
  end
24
24
 
25
25
  def check_one(value, attribute_name)
26
- return if !value.respond_to?(:valid?) || !value.respond_to?(:errors) || !value.errors.present? || value.valid?
26
+ return if !value.respond_to?(:valid?) || !value.respond_to?(:errors) || value.errors.nil? || value.valid?
27
27
  value.errors.full_messages.each do |message|
28
28
  errors.add(:base, "#{attribute_name}.#{message}")
29
29
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PhModel
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.0.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ph_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Banasik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport