Sha256: 6709163bf5249fe4da499d25a952a46be87dd5875404285f41d8391cfc610600

Contents?: true

Size: 748 Bytes

Versions: 39

Compression:

Stored size: 748 Bytes

Contents

module Ecom
  module Core
    class Engine < ::Rails::Engine
      isolate_namespace Ecom::Core
      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_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

39 entries across 39 versions & 1 rubygems

Version Path
ecom_core-1.3.14 lib/ecom/core/engine.rb
ecom_core-1.3.13 lib/ecom/core/engine.rb
ecom_core-1.3.12 lib/ecom/core/engine.rb
ecom_core-1.3.11 lib/ecom/core/engine.rb
ecom_core-1.3.10 lib/ecom/core/engine.rb
ecom_core-1.3.9 lib/ecom/core/engine.rb
ecom_core-1.3.8 lib/ecom/core/engine.rb
ecom_core-1.3.7 lib/ecom/core/engine.rb
ecom_core-1.3.6 lib/ecom/core/engine.rb
ecom_core-1.3.5 lib/ecom/core/engine.rb
ecom_core-1.3.4 lib/ecom/core/engine.rb
ecom_core-1.3.3 lib/ecom/core/engine.rb
ecom_core-1.3.2 lib/ecom/core/engine.rb
ecom_core-1.3.1 lib/ecom/core/engine.rb
ecom_core-1.3.0 lib/ecom/core/engine.rb
ecom_core-1.2.36 lib/ecom/core/engine.rb
ecom_core-1.2.35 lib/ecom/core/engine.rb
ecom_core-1.2.34 lib/ecom/core/engine.rb
ecom_core-1.2.33 lib/ecom/core/engine.rb
ecom_core-1.2.32 lib/ecom/core/engine.rb