summaryrefslogtreecommitdiff
path: root/config/initializers/flipper.rb
blob: 8ec9613a4b7eee61a11da8a15507dbf6279a7ec0 (plain)
1
2
3
4
5
6
require 'flipper/middleware/memoizer'

unless Rails.env.test?
  Rails.application.config.middleware.use Flipper::Middleware::Memoizer,
    lambda { Feature.flipper }
end