arkaan 0.7.19 → 0.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/concerns/premiumable.rb +4 -9
- data/lib/arkaan/monitoring/route.rb +1 -2
- data/lib/arkaan/monitoring/service.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea59fd72d90a9511ab93a193894a17677b560067
|
4
|
+
data.tar.gz: 897abf0eeb3ea0427856ac7c099c4517e2d8e4bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9741fb2843a9d51922ce59b4341285b5f1e7444858d262c453d0427a104b86e76ddabbb208a0f365e988c791c3701e5b5be48db6076de2eac9e854c47bbe15b
|
7
|
+
data.tar.gz: 43d8bd468041397f9198b942200a7ad02429ad05da1bd4bbe4b5d733e2aab879858a4eec2f4fbd928c2d1142264131a76b7154c4f7744bcd73734c2c8a48cd01
|
@@ -5,15 +5,10 @@ module Arkaan
|
|
5
5
|
module Premiumable
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
def make_premiumable
|
13
|
-
# @!attribute [rw] premium
|
14
|
-
# @return [Boolean] TRUE if the entity is made to be accessible only to premiuma pplications, FALSE otherwise.
|
15
|
-
field :premium, type: Boolean, default: false
|
16
|
-
end
|
8
|
+
included do
|
9
|
+
# @!attribute [rw] premium
|
10
|
+
# @return [Boolean] TRUE if the entity is made to be accessible only to premiuma pplications, FALSE otherwise.
|
11
|
+
field :premium, type: Boolean, default: false
|
17
12
|
end
|
18
13
|
end
|
19
14
|
end
|
@@ -6,6 +6,7 @@ module Arkaan
|
|
6
6
|
include Mongoid::Document
|
7
7
|
include Mongoid::Timestamps
|
8
8
|
include Arkaan::Concerns::Premiumable
|
9
|
+
include Arkaan::Concerns::Activable
|
9
10
|
|
10
11
|
# @!attribute [rw] path
|
11
12
|
# @return [String] the path (URI) of the route in the service?
|
@@ -14,8 +15,6 @@ module Arkaan
|
|
14
15
|
# @return [String] the verb (HTTP method) of this route in the service.
|
15
16
|
field :verb, type: String, default: 'get'
|
16
17
|
|
17
|
-
make_premiumable
|
18
|
-
|
19
18
|
# @!attribute [rw] service
|
20
19
|
# @return [Arkaan::Monitoring::Service] the service in which this route is declared.
|
21
20
|
belongs_to :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :routes
|