lib/with_model/model.rb in with_model-2.1.4 vs lib/with_model/model.rb in with_model-2.1.5
- old
+ new
@@ -61,9 +61,10 @@
end
end
def reset_dependencies_cache
return unless defined?(ActiveSupport::Dependencies::Reference)
+
ActiveSupport::Dependencies::Reference.clear!
end
def stubber
@stubber ||= ConstantStubber.new const_name