lib/flipper.rb in flipper-0.11.0.beta7 vs lib/flipper.rb in flipper-0.11.0.beta8
- old
+ new
@@ -29,10 +29,12 @@
@configuration ||= Configuration.new
end
# Public: Sets Flipper::Configuration instance.
def configuration=(configuration)
+ # need to reset flipper instance if configuration changes
+ Thread.current[:flipper_instance] = nil
@configuration = configuration
end
# Public: Default per thread flipper instance if configured. You should not
# need to use this directly as most of the Flipper::DSL methods are delegated
@@ -53,10 +55,10 @@
:enable_percentage_of_actors, :disable_percentage_of_actors,
:actors, :percentage_of_actors,
:enable_percentage_of_time, :disable_percentage_of_time,
:time, :percentage_of_time,
:features, :feature, :[], :preload, :preload_all,
- :add, :remove, :import
+ :adapter, :add, :remove, :import
# Public: Use this to register a group by name.
#
# name - The Symbol name of the group.
# block - The block that should be used to determine if the group matches a