Skip to content

Commit

Permalink
Merge 1e0230a into 0c182c4
Browse files Browse the repository at this point in the history
  • Loading branch information
jibees authored Apr 15, 2021
2 parents 0c182c4 + 1e0230a commit 579104d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/flipper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
require "flipper"
require "flipper/adapters/active_record"
require "flipper/instrumentation/log_subscriber"

Flipper.configure do |config|
config.default do
Flipper.new(Flipper::Adapters::ActiveRecord.new)
adapter = Flipper::Adapters::ActiveRecord.new
instrumented = Flipper::Adapters::Instrumented.new(adapter, instrumenter: ActiveSupport::Notifications)
Flipper.new(instrumented, instrumenter: ActiveSupport::Notifications)
end
end
Rails.configuration.middleware.use Flipper::Middleware::Memoizer, preload_all: true
Expand Down

0 comments on commit 579104d

Please sign in to comment.