mongoid_feature_flags 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid_feature_flags.rb +2 -1
- metadata +1 -1
@@ -6,6 +6,8 @@ module Mongoid
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
|
+
@feature_flag_parents = []
|
10
|
+
|
9
11
|
begin
|
10
12
|
self.field :feature_flags, type: Hash
|
11
13
|
rescue
|
@@ -17,7 +19,6 @@ module Mongoid
|
|
17
19
|
|
18
20
|
module ClassMethods
|
19
21
|
def inherits_features_from(*relative)
|
20
|
-
@feature_flag_parents ||= []
|
21
22
|
@feature_flag_parents += relative
|
22
23
|
@feature_flag_parents.uniq!
|
23
24
|
end
|