ish_models 0.0.33.259 → 0.0.33.261

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 434c9832f29b5dc7ac32419df75a2144df407572d654af9349730eb3ba72f532
4
- data.tar.gz: adf60195f2ab27e2569883195553115b5c3d03f852452f5648bb96e19cd3fd7c
3
+ metadata.gz: fa73b63b2bd92ef84cfee8e0056d5eaac0e2f69ba25dde1a0a0fc2edb86ed422
4
+ data.tar.gz: 4f28cdfcf23e2de3e6d719505a536fe964504004cfd49dac8bc2c317b9ac88cf
5
5
  SHA512:
6
- metadata.gz: 8eff90b4979e39b82f502c9a95dbfaed444349bf1659f1f79e4325785863d6d28363e7c9639f963e61368760cdda0e082097028bdc11abd9ad43a56ead2c1953
7
- data.tar.gz: 19b76388d5b8e12a6b2525586d350412b0e5cd04cc5844ca10b4e457a2d1dd131b085ddb90d6673dc0800f5a0faba0ccdd2c640d9b70ec9046e164e2137075e8
6
+ metadata.gz: 6263da5a648720bbfae0b1e7ffee71fe8ac60602da6425a309de8acb62cf51777d90e645a58fbd846e717e258624480df8d70ac4003edff2ce09d6d78fc72357
7
+ data.tar.gz: 3fe0182f64af98d808ec64f49b32153c1da3bcab65afb1981eaa8e5820ad4449d6f4b647806abfb830bf7959b021aefcc9797158ba719eeb77acd8c997ac5e7f
data/lib/gallery.rb CHANGED
@@ -28,6 +28,7 @@ class Gallery
28
28
 
29
29
  field :lang, :default => 'en'
30
30
  field :username
31
+ field :lead_id, type: :integer
31
32
 
32
33
  field :slug
33
34
  index({ :slug => -1 }, { :unique => true })
@@ -85,6 +85,7 @@ class Ish::UserProfile
85
85
 
86
86
  field :is_purchasing, type: Boolean, default: false
87
87
 
88
+ field :customer_id # stripe
88
89
 
89
90
  # used in rake tasks
90
91
  def self.generate delta
@@ -14,7 +14,7 @@ class Office::EmailConversation
14
14
 
15
15
  field :lead_ids, type: :array, default: []
16
16
  def leads
17
- Lead.find( lead_ids )
17
+ Lead.find( lead_ids.compact )
18
18
  end
19
19
 
20
20
  has_many :email_messages
data/lib/video.rb CHANGED
@@ -30,6 +30,8 @@ class Video
30
30
 
31
31
  field :is_public, :type => Boolean, :default => false
32
32
 
33
+ field :lead_id, type: :integer
34
+
33
35
  field :x, type: Float
34
36
  field :y, type: Float
35
37
  field :z, type: Float
data/lib/wco/product.rb CHANGED
@@ -16,7 +16,7 @@ class Wco::Product
16
16
  has_many :subscriptions, class_name: '::Wco::Subscription', inverse_of: :subscription
17
17
 
18
18
  def self.list
19
- [ [nil,nil] ] + self.all.map { |i| [i.name, i.price_id] }
19
+ [ [nil,nil] ] + self.all.map { |i| [i.name, i.id] }
20
20
  end
21
21
 
22
22
  end
@@ -3,7 +3,12 @@ class Wco::Subscription
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
5
 
6
+ field :customer_id, type: :string # stripe
7
+ field :price_id, type: :string # stripe
8
+
6
9
  # belongs_to :organization, class_name: '::Wco::Organization', inverse_of: :subscriptions
7
10
  belongs_to :product, class_name: '::Wco::Product', inverse_of: :subscriptions
8
11
 
9
12
  end
13
+
14
+
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.259
4
+ version: 0.0.33.261
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox