Sha256: 2db967b10d8ca88f21ba7082b208900e92538ad71c95cecec13ec224a7fb0924

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

module Mks
  module Edm
    class Engine < ::Rails::Engine
      isolate_namespace Mks::Edm
      config.generators.api_only = true

      initializer :append_migrations do |app|
        unless app.root.to_s.match? root.to_s
          config.paths['db/migrate'].expanded.each do |expanded_path|
            app.config.paths['db/migrate'] << expanded_path
          end
        end
      end

      config.generators do |g|
        g.test_framework :rspec,
                         fixtures: true,
                         routing_specs: false,
                         helper_specs:false
        g.assets false
        g.helper false
        g.fixture_replacement :factory_bot, dir: 'spec/factories'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mks_edm-1.0.5 lib/mks/edm/engine.rb
mks_edm-1.0.4 lib/mks/edm/engine.rb
mks_edm-1.0.2 lib/mks/edm/engine.rb
mks_edm-1.0.1 lib/mks/edm/engine.rb