ish_models 0.0.33.260 → 0.0.33.261
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gallery.rb +1 -0
- data/lib/video.rb +2 -0
- data/lib/wco/product.rb +1 -1
- data/lib/wco/subscription.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa73b63b2bd92ef84cfee8e0056d5eaac0e2f69ba25dde1a0a0fc2edb86ed422
|
4
|
+
data.tar.gz: 4f28cdfcf23e2de3e6d719505a536fe964504004cfd49dac8bc2c317b9ac88cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6263da5a648720bbfae0b1e7ffee71fe8ac60602da6425a309de8acb62cf51777d90e645a58fbd846e717e258624480df8d70ac4003edff2ce09d6d78fc72357
|
7
|
+
data.tar.gz: 3fe0182f64af98d808ec64f49b32153c1da3bcab65afb1981eaa8e5820ad4449d6f4b647806abfb830bf7959b021aefcc9797158ba719eeb77acd8c997ac5e7f
|
data/lib/gallery.rb
CHANGED
data/lib/video.rb
CHANGED
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.
|
19
|
+
[ [nil,nil] ] + self.all.map { |i| [i.name, i.id] }
|
20
20
|
end
|
21
21
|
|
22
22
|
end
|
data/lib/wco/subscription.rb
CHANGED
@@ -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
|
+
|