Sha256: ab046668c310c3bbe5c7db494020474d9d1963e05031faef55ef12d367706581

Contents?: true

Size: 751 Bytes

Versions: 236

Compression:

Stored size: 751 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|
        app.config.paths["db/migrate"].concat(config.paths["db/migrate"].expanded) unless app.root.to_s.match(root.to_s + File::SEPARATOR)
      end
    end
  end
end

Version data entries

236 entries across 236 versions & 1 rubygems

Version Path
comee_core-0.3.62 lib/comee/core/engine.rb
comee_core-0.3.61 lib/comee/core/engine.rb
comee_core-0.3.60 lib/comee/core/engine.rb
comee_core-0.3.59 lib/comee/core/engine.rb
comee_core-0.3.58 lib/comee/core/engine.rb
comee_core-0.3.57 lib/comee/core/engine.rb
comee_core-0.3.56 lib/comee/core/engine.rb
comee_core-0.3.55 lib/comee/core/engine.rb
comee_core-0.3.54 lib/comee/core/engine.rb
comee_core-0.3.53 lib/comee/core/engine.rb
comee_core-0.3.51 lib/comee/core/engine.rb
comee_core-0.3.50 lib/comee/core/engine.rb
comee_core-0.3.49 lib/comee/core/engine.rb
comee_core-0.3.48 lib/comee/core/engine.rb
comee_core-0.3.47 lib/comee/core/engine.rb
comee_core-0.3.46 lib/comee/core/engine.rb
comee_core-0.3.45 lib/comee/core/engine.rb
comee_core-0.3.44 lib/comee/core/engine.rb
comee_core-0.3.43 lib/comee/core/engine.rb
comee_core-0.3.42 lib/comee/core/engine.rb