ish_models 0.0.33.202 → 0.0.33.203

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/email_context.rb +4 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4d55a1db780f3a656dc89b8f42080058fbf3fe63cf68a078e15ded503b1fc3f
4
- data.tar.gz: c3b8b68584d144d8eb0afd391fd1c85a4f43f9f8b891377512bc82fca349abbb
3
+ metadata.gz: d743720d7da4d999732d7d28b69fe0697eaa73423d8fbb8f00866409eb857ed6
4
+ data.tar.gz: da958d68e0f40daedef7356725afba4a063713315e5ef756396355700f49f710
5
5
  SHA512:
6
- metadata.gz: 27fa2bf8d18914900c1671f39c8cbaf04c1dd6d1f047d0fe435a7ef64ea70bd56fb5ac0e85e007d74a4859b4d9362d390d97c83ea56003f17b7534be9ef8e564
7
- data.tar.gz: 8e4a9af7e7ace39f488c46c35175b60e6c85f7ae509a5d8ff281e1aae67d931907d5d24a8533a0f90d25079e974d3491ddb5e760b5e53cf17a548a09f4d899b4
6
+ metadata.gz: 210e40b9e0033207fb621b7d999227b638187f62937836885691b96206b4950ef01c5818d67fbef9fa5b456d5cf41a83b0f9974beda2e677662677315ba46b71
7
+ data.tar.gz: 6e0519979624398d04c9406f8ade0df6be50fa062f6dc8aafdf1cec5cd4a278efa4a57b7101f0b9023e849f51268da2274d1a188ddff61ad26752dfaadceed2f
@@ -73,18 +73,12 @@ class ::Ish::EmailContext
73
73
  end
74
74
 
75
75
 
76
- field :lead_id
76
+ field :lead_id, type: :integer
77
77
  def lead
78
78
  Lead.find lead_id
79
79
  end
80
- ## @deprecated: use self.lead
81
- field :to_email
82
80
  def to_email
83
- if self[:lead_id]
84
- return lead[:email]
85
- else
86
- return self[:to_email]
87
- end
81
+ return lead[:email]
88
82
  end
89
83
 
90
84
 
@@ -99,3 +93,5 @@ class ::Ish::EmailContext
99
93
  end
100
94
 
101
95
  end
96
+ Ctx = ::Ish::EmailContext
97
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.202
4
+ version: 0.0.33.203
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox