Sha256: 702265fe7cfa0f9935bdd2850b3d98d2b247b846e183ef451df4780398cb2a07

Contents?: true

Size: 773 Bytes

Versions: 14

Compression:

Stored size: 773 Bytes

Contents

module Comee
  module Core
    class Engine < ::Rails::Engine
      isolate_namespace Comee::Core
      config.generators.api_only = true

      config.generators do |g|
        g.test_framework :rspec, routing_specs: false
        g.fixture_replacement :factory_bot
        g.factory_bot dir: "spec/factories"
      end

      initializer "comee_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

14 entries across 14 versions & 1 rubygems

Version Path
comee_core-0.1.23 lib/comee/core/engine.rb
comee_core-0.1.22 lib/comee/core/engine.rb
comee_core-0.1.21 lib/comee/core/engine.rb
comee_core-0.1.20 lib/comee/core/engine.rb
comee_core-0.1.19 lib/comee/core/engine.rb
comee_core-0.1.18 lib/comee/core/engine.rb
comee_core-0.1.17 lib/comee/core/engine.rb
comee_core-0.1.16 lib/comee/core/engine.rb
comee_core-0.1.15 lib/comee/core/engine.rb
comee_core-0.1.14 lib/comee/core/engine.rb
comee_core-0.1.13 lib/comee/core/engine.rb
comee_core-0.1.12 lib/comee/core/engine.rb
comee_core-0.1.11 lib/comee/core/engine.rb
comee_core-0.1.10 lib/comee/core/engine.rb