lib/dry/container/mixin.rb in dry-container-0.2.6 vs lib/dry/container/mixin.rb in dry-container-0.2.7
- old
+ new
@@ -36,10 +36,10 @@
setting :namespace_separator, '.'
@_container = ::ThreadSafe::Hash.new
def self.inherited(subclass)
- subclass.instance_variable_set(:@_container, @_container)
+ subclass.instance_variable_set(:@_container, @_container.dup)
super
end
end
end