diff --git a/lib/flipper/adapter_builder.rb b/lib/flipper/adapter_builder.rb index 45d84788..74798b0b 100644 --- a/lib/flipper/adapter_builder.rb +++ b/lib/flipper/adapter_builder.rb @@ -3,7 +3,7 @@ module Flipper # # adapter = Flipper::AdapterBuilder.new do # use Flipper::Adapters::Strict - # use Flipper::Adapters::Memoizer + # use Flipper::Adapters::Memoizable # store Flipper::Adapters::Memory # end.to_adapter # diff --git a/lib/flipper/adapters/active_record.rb b/lib/flipper/adapters/active_record.rb index 963447a6..458b603d 100644 --- a/lib/flipper/adapters/active_record.rb +++ b/lib/flipper/adapters/active_record.rb @@ -221,7 +221,6 @@ def set(feature, gate, thing, options = {}) @gate_class.transaction do clear(feature) if clear_feature delete(feature, gate) - @gate_class.where(feature_key: feature.key, key: gate.key).destroy_all begin @gate_class.create! do |g| g.feature_key = feature.key