Sha256: 7fbe8a4348e7ac8fc98fc909eb748df5d35530a2385e9fe9c65b9701a8da4b80

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

module Makers
  class Railtie < Rails::Railtie

    config.app_generators.test_framework(
      config.app_generators.options[:rails][:test_framework],
      fixture: false
    )

    initializer 'makers.active_support' do
      ActiveSupport::TestCase.include(
        Makers::Extensions::ActiveSupport::TestCase
      )
    end

    config.after_initialize do
      path = Rails.root.join("#{Makers.directory}/makers.rb")
      if File.exist?(path)
        load path
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
makers-5.1.0 lib/makers/railtie.rb