simple_model 1.2.18 → 1.2.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGI2YjA2MjE0MTA1YTgyYjQyOTg4ZTk2YjI5MmE1MThlNjY4NDFjOA==
4
+ MDBkMzViOTJhN2Y0YWViMjkxMWJlMDdmOTA4ODM2MDI5Y2JkYjRjZg==
5
5
  data.tar.gz: !binary |-
6
- YWIxNDkwOTRkNjhjM2UxN2Q0ODQzY2JlN2VjMGE2ODAzOTQ5YmNjMg==
6
+ MDgwYjViMDRkNzRkNmIyYjQ2MjUxNWIwNjViMzRlYmY4YjJkODJkOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzFhZTg3ZGZiNTJhMTkwMjEwZjFlOTIwMzRlNWVlMDExYmY2NjYzYzdjYTk3
10
- M2IzM2M1NzFjNWU1NGY4ZTk4NDBkMGI2N2FkYzhmN2M2NjRhZDgzMDZlN2Ji
11
- MzY5MjY0MGQxMjAxYjg4ZWUzMTgzZjYwYWQ4MmU0N2Q1NjJlNjI=
9
+ N2FmYWVkODI3NTM2NmFlZGU4OTgxNWFlNTQzN2U0OWQzYzI4MWEwY2QwMzdm
10
+ ZDZmZTJkNmQ3N2M3YmFlMjAzNzdiNGI4OTVmMDBjMzMxMzlkZmJlNTEzYzE1
11
+ NjkzNDc3MTc2MDcxMTViYmFmZGFkZTZhMGY1ZDg4NDYzNDk0ODU=
12
12
  data.tar.gz: !binary |-
13
- MGIzMThlMGJlNzZkOGVhNDZlZTgwMTc4MWRmMTVjNzBiYmY0YTZiZDdkNzRh
14
- M2JhNWI3NmJlODFjNjZiNjgxOWUzMmEyMjA2ZjY0YjM5ODYzNTBlNDJhOTli
15
- NDg4N2E0ZmI4ZTczNTY4NWQzNTM3ZWY5ODUyOGUyNTgxMmRkM2I=
13
+ NDU0NzczNjhkMzU2YzMxYWY1MjhmZTAyMWQ0MjFmZGRlMWMwOGIwYmI3YjMy
14
+ Mjk4ODFhYzg3N2IyZjhmMGNiNTFkYTJkNmI0MTQ0YTdiODRlMmNmNGRhNmZi
15
+ ZDZkZTZkNmJhYWQxNTQ1NWUyM2UwZjYzNGQ5ZWRhOGU1ZGMxM2M=
@@ -63,10 +63,10 @@ module SimpleModel
63
63
 
64
64
  def get_attribute?(attr)
65
65
  val = get_attribute(attr)
66
- if val.respond_to?(:to_b)
67
- val = val.to_b
68
- else
69
- val = !val.blank? if val.respond_to?(:blank?)
66
+ if val.respond_to?(:blank?)
67
+ return !val.blank?
68
+ elsif val.respond_to?(:to_b)
69
+ return val.to_b
70
70
  end
71
71
  val
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleModel
2
- VERSION = "1.2.18"
2
+ VERSION = "1.2.19"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.18
4
+ version: 1.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua T Mckinney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport