Sha256: d865a5d09769560609d7a2b0f13c086c8598efd670783b604ed3510675660121

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom_model-2.0.0 lib/ecom/model/engine.rb