wco_models 3.1.0.36 → 3.1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +1 -2
- data/app/models/wco/premium_tier.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 846e223319833c5b8082e5a4a025e9e19996bd49aa2f12eee713aa703a29f772
|
4
|
+
data.tar.gz: a76155f4247d01d08d257dc8beff5677de93317d4fb26f713208c42a8f7f3b77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dfe93a9ee7efa81bc56d7acd16c1f226f4df418a79c69566abaa7298c73824330a0e38c2e9af7f51c8a9da605401639ef42bcecfd8e9c98726d877704e2de67
|
7
|
+
data.tar.gz: d35193f9f49ab9a7a5f6abf6d9d4779d1df863b5f3a436dfcdfcc88a17985a9d2e8ae0f081da178e39dd9dc54b6e5b590038d842e13f09b8f8a29d3ada88250f
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
@@ -274,7 +274,6 @@ files:
|
|
274
274
|
- app/models/wco/office_action.rb
|
275
275
|
- app/models/wco/photo.rb
|
276
276
|
- app/models/wco/premium_item.rb
|
277
|
-
- app/models/wco/premium_tier.rb
|
278
277
|
- app/models/wco/price.rb
|
279
278
|
- app/models/wco/product.rb
|
280
279
|
- app/models/wco/profile.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
|
2
|
-
module Wco::PremiumItem
|
3
|
-
|
4
|
-
def self.included base
|
5
|
-
base.send :field, :premium_tier, type: Integer, default: 0 # how many unlocks are need, to get access? 0 = free
|
6
|
-
base.send :has_many, :premium_purchases, class_name: '::Ish::Payment', as: :item
|
7
|
-
end
|
8
|
-
|
9
|
-
def is_premium
|
10
|
-
premium_tier > 0
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|