Sha256: 14c0869c4e671e6639433cec5cc29389670d23823f50d42a68d919faf2556495

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module FactoryBot
  def self.preload(&block)
    Preload.preloaders << block
  end

  module Syntax
    module Default
      class DSL
        def preload(&block)
          ::FactoryBot.preload(&block)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
factory_bot-preload-0.3.1 lib/factory_bot/preload/extension.rb
factory_bot-preload-0.3.0 lib/factory_bot/preload/extension.rb
factory_bot-preload-0.2.2 lib/factory_bot/preload/extension.rb
factory_bot-preload-0.2.1 lib/factory_bot/preload/extension.rb
factory_bot-preload-0.2.0 lib/factory_bot/preload/extension.rb