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 +8 -8
- data/lib/simple_model/attributes.rb +4 -4
- data/lib/simple_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDBkMzViOTJhN2Y0YWViMjkxMWJlMDdmOTA4ODM2MDI5Y2JkYjRjZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDgwYjViMDRkNzRkNmIyYjQ2MjUxNWIwNjViMzRlYmY4YjJkODJkOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2FmYWVkODI3NTM2NmFlZGU4OTgxNWFlNTQzN2U0OWQzYzI4MWEwY2QwMzdm
|
10
|
+
ZDZmZTJkNmQ3N2M3YmFlMjAzNzdiNGI4OTVmMDBjMzMxMzlkZmJlNTEzYzE1
|
11
|
+
NjkzNDc3MTc2MDcxMTViYmFmZGFkZTZhMGY1ZDg4NDYzNDk0ODU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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?(:
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
data/lib/simple_model/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|