Sha256: 979ea115397494fe1ba04aeed0e69806db2d549c40c78ec26e9b5ee39e9dffd9
Contents?: true
Size: 752 Bytes
Versions: 3
Compression:
Stored size: 752 Bytes
Contents
module Ecom module Model class Engine < ::Rails::Engine isolate_namespace Ecom::Model config.generators.api_only = true config.generators do |g| g.test_framework :rspec g.fixture_replacement :factory_bot g.factory_bot dir: 'spec/factories' end initializer 'ecom_model.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecom_model-2.0.4 | lib/ecom/model/engine.rb |
ecom_model-2.0.3 | lib/ecom/model/engine.rb |
ecom_model-2.0.2 | lib/ecom/model/engine.rb |