Sha256: 001d977c6ef77b0083949fb0a794c874f8d0c7da175b6f66383d00e62db36eb0

Contents?: true

Size: 696 Bytes

Versions: 5

Compression:

Stored size: 696 Bytes

Contents

module Mks
  module Rate
    class Engine < ::Rails::Engine
      require 'active_model_serializers'
      isolate_namespace Mks::Rate
      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

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 lib/mks/rate/engine.rb
mks_rate-1.0.4 lib/mks/rate/engine.rb
mks_rate-1.0.3 lib/mks/rate/engine.rb
mks_rate-1.0.2 lib/mks/rate/engine.rb
mks_rate-1.0.1 lib/mks/rate/engine.rb