lib/sea_shanty.rb in sea_shanty-0.1.1 vs lib/sea_shanty.rb in sea_shanty-0.2.0
- old
+ new
@@ -54,10 +54,15 @@
"Cannot find an interceptor for #{identifier}. Available interceptors are: [#{interceptors.keys.join(", ")}]"
)
end
def request_store
- @request_store ||= RequestStore.new(configuration)
+ RequestStore.new(configuration)
+ end
+
+ def reset!
+ @configuration = Configuration.new
+ configure {}
end
def configuration_overwrite(env_var, value)
if env_var.nil? || env_var.empty?
value