Sha256: 8d5bd1d8208760fcbcc77257d4d96b3ccf3e0e5e6689012261cebe52f86627d7
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
module Makers class Railtie < Rails::Railtie initializer 'makers.extensions' do ActiveSupport::TestCase.include( Makers::Extensions::ActiveSupport::TestCase ) end initializer 'makers.replace_fixtures' do config.app_generators.test_framework( config.app_generators.options[:rails][:test_framework], fixture: false ) end config.after_initialize do if Dir.exist?(Rails.root.join('spec')) directory = 'spec' else directory = 'test' end path = Rails.root.join("#{directory}/makers.rb") if File.exist?(path) load path end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
makers-4.0.0.2 | lib/makers/railtie.rb |
makers-4.0.0.1 | lib/makers/railtie.rb |
makers-4.0.0.0 | lib/makers/railtie.rb |