contacts_client 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/padma_contact.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
|
+
MjQ3ZWMyZWQwMTg2ZjAyZjQ2MGUxZjNjMGE3ODhiZjE1MDQzYzIzMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzM0NmU4ZTJiZDI3OGY1MTVhODNlZmU4MTU4MDkxZTM2NmZmODljYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGM2ZWNkODljZTUwOGIzMWI2Yzc5ZGEyNzY0YmZlNmI4ZDlkYTc3MDBlMDc3
|
10
|
+
MDY5NGRlMDkzYTlmODMzYzg2MzgyOGNiMmU0MDdkOGMzNGVlZGE5ZTU2MGE1
|
11
|
+
M2JkZjkxNWJlZDBiZjk3YjA1NjliNmE0MGFkZDNmNTc0ZGJhN2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTY2NWRiNjNlYzJhYTljMDNiOWEzOGYwOTVkZDlmMmQwYTg5ZmE5NjQ0OTA3
|
14
|
+
MzViOTg0ZWRiMTBmOWY1YWJjNWQ5MjQzNTJkYjllMDJlZGVhYTRlOWVkMTA1
|
15
|
+
N2U1ZDhjMDRmYjQ1NDcwMTMxNTBjNzZmNGE3Y2E1ZWMxNzU4Yjk=
|
data/app/models/padma_contact.rb
CHANGED
@@ -108,7 +108,7 @@ class PadmaContact < LogicalModel
|
|
108
108
|
ContactAttribute::AVAILABLE_TYPES.each do |type|
|
109
109
|
define_method(type.to_s.pluralize) do
|
110
110
|
if self.contact_attributes
|
111
|
-
self.contact_attributes.
|
111
|
+
self.contact_attributes.select{ |attr| attr && attr.is_a?(type.to_s.camelize.constantize)}.sort_by{|x| x.primary ? 0 : 1 }
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contacts_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|