contacts_client 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/padma_contact.rb +6 -1
- metadata +2 -2
data/app/models/padma_contact.rb
CHANGED
|
@@ -27,7 +27,8 @@ class PadmaContact < LogicalModel
|
|
|
27
27
|
:email, # Primary email (contact attribute)
|
|
28
28
|
:telephone, # Primary telephone (contact attribute)
|
|
29
29
|
:in_active_merge,
|
|
30
|
-
:observation
|
|
30
|
+
:observation,
|
|
31
|
+
:in_professional_training
|
|
31
32
|
]
|
|
32
33
|
self.has_many_keys = [:contact_attributes, :attachments, :tags]
|
|
33
34
|
self.use_api_key = true
|
|
@@ -99,6 +100,10 @@ class PadmaContact < LogicalModel
|
|
|
99
100
|
self._id.present?
|
|
100
101
|
end
|
|
101
102
|
|
|
103
|
+
def in_professional_training?
|
|
104
|
+
self.in_professional_training
|
|
105
|
+
end
|
|
106
|
+
|
|
102
107
|
ContactAttribute::AVAILABLE_TYPES.each do |type|
|
|
103
108
|
define_method(type.to_s.pluralize) do
|
|
104
109
|
if self.contact_attributes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.23
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: railties
|