mongoid_feature_flags 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/mongoid_feature_flags.rb +2 -1
  2. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_feature_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: