Sha256: 61e1b314e0803c595e1819b5ebdc6e10918c3b60f0e45acaaec1c9bf626534a5

Contents?: true

Size: 749 Bytes

Versions: 67

Compression:

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

67 entries across 67 versions & 1 rubygems

Version Path
ecom_core-1.2.12 lib/ecom/core/engine.rb
ecom_core-1.2.11 lib/ecom/core/engine.rb
ecom_core-1.2.10 lib/ecom/core/engine.rb
ecom_core-1.2.9 lib/ecom/core/engine.rb
ecom_core-1.2.7 lib/ecom/core/engine.rb
ecom_core-1.2.6 lib/ecom/core/engine.rb
ecom_core-1.2.5 lib/ecom/core/engine.rb
ecom_core-1.2.4 lib/ecom/core/engine.rb
ecom_core-1.2.3 lib/ecom/core/engine.rb
ecom_core-1.2.2 lib/ecom/core/engine.rb
ecom_core-1.2.1 lib/ecom/core/engine.rb
ecom_core-1.2.0 lib/ecom/core/engine.rb
ecom_core-1.1.28 lib/ecom/core/engine.rb
ecom_core-1.1.27 lib/ecom/core/engine.rb
ecom_core-1.1.26 lib/ecom/core/engine.rb
ecom_core-1.1.25 lib/ecom/core/engine.rb
ecom_core-1.1.24 lib/ecom/core/engine.rb
ecom_core-1.1.23 lib/ecom/core/engine.rb
ecom_core-1.1.22 lib/ecom/core/engine.rb
ecom_core-1.1.21 lib/ecom/core/engine.rb