Sha256: db554db2c4ec62f5123dd26161a0363ec5a3db4d2f4ee502c2fe6a478715e7b8
Contents?: true
Size: 812 Bytes
Versions: 9
Compression:
Stored size: 812 Bytes
Contents
module Sis module Core class Engine < ::Rails::Engine isolate_namespace Sis::Core config.generators.api_only = true config.autoload_paths << Sis::Core::Engine.root.join('lib') config.generators do |g| g.test_framework :rspec g.fixture_replacement :factory_bot g.factory_bot dir: 'spec/factories' end initializer 'sis_core.factories', after: 'factory_bot.set_factory_paths' do FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __dir__) if defined?(FactoryBot) end initializer :append_migrations do |app| unless app.root.to_s.match(root.to_s + File::SEPARATOR) app.config.paths['db/migrate'].concat(config.paths['db/migrate'].expanded) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems