Skip to content

Commit

Permalink
Merge pull request #862 from khiet/main
Browse files Browse the repository at this point in the history
Remove redundant deletion of feature gate in Flipper::Adapters::ActiveRecord#set.
  • Loading branch information
bkeepers authored Apr 19, 2024
2 parents 8a99cf8 + cd8939c commit 13c415c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/flipper/adapter_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
1 change: 0 additions & 1 deletion lib/flipper/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13c415c

Please sign in to comment.