module FactoryBotCaching::CachingFactoryRunner
Public Instance Methods
run(runner_strategy = @strategy, &block)
click to toggle source
Calls superclass method
# File lib/factory_bot_caching/caching_factory_runner.rb, line 30 def run(runner_strategy = @strategy, &block) # We have to define the cache here so that it has access to super. if FactoryBotCaching.enabled? && runner_strategy == :create CacheManager.instance.fetch(name: @name, overrides: @overrides, traits: @traits) do super end else super end end