wco_models 3.1.0.98 → 3.1.0.100
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f992057b3459389750e637a72ca85fbf5b89c2e43b27914e845c93550579c61
|
4
|
+
data.tar.gz: ad1b76da7a02e9ba92dbd3593311b490d3021a1218dbc122536a7ca946184ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea7a234b2d0e744882349f53f128bb36d39802b0265b4b68ffb6b99f79bdb078ded3e4d5ef49b53b02088f6fccf2b3eff20b9ce7324fb6542ca257ba8df2237
|
7
|
+
data.tar.gz: 1c4471fcd47583f0a479ef797ed0260202c8ca04e89634e538c560b3058fe89938119216333263e4bceadc948087c001c070d598df1b0badbcf63e9ffcdd0950
|
@@ -140,10 +140,10 @@ class WcoEmail::MessageStub
|
|
140
140
|
@message.save
|
141
141
|
end
|
142
142
|
|
143
|
-
## Attachments
|
144
|
-
the_mail.attachments.each do |att|
|
145
|
-
|
146
|
-
end
|
143
|
+
## Attachments, which are parts (omit!)
|
144
|
+
# the_mail.attachments.each do |att|
|
145
|
+
# @message.save_attachment( att )
|
146
|
+
# end
|
147
147
|
|
148
148
|
if !@message.save
|
149
149
|
puts! @message.errors.full_messages.join(", "), "Could not save @message"
|
@@ -67,10 +67,14 @@ class WcoHosting::ApplianceTmpl
|
|
67
67
|
|
68
68
|
has_many :subscriptions, as: :product, class_name: 'Wco::Subscription'
|
69
69
|
|
70
|
+
field :product_id # stripe
|
71
|
+
|
70
72
|
# belongs_to :price, class_name: 'Wco::Price', foreign_key: :wco_price_id
|
71
73
|
has_one :price, as: :product, class_name: 'Wco::Price'
|
72
74
|
field :price_id # stripe
|
73
75
|
|
74
|
-
|
76
|
+
def to_s
|
77
|
+
"#{kind}-#{version}"
|
78
|
+
end
|
75
79
|
end
|
76
80
|
AppTmpl = WcoHosting::ApplianceTmpl
|