Sha256: f434137c47200578938b43837b22cd20dbe4ce9cb34bd3041a5975558892eb24

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

module BetaFeature
  class Engine < ::Rails::Engine
    isolate_namespace BetaFeature

    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
      g.fixture_replacement :factory_bot
      g.factory_bot dir: 'spec/factories'
      g.assets false
      g.helper false
    end

    config.after_initialize do
      ::ActiveRecord::Base.send :include, BetaFeature::Flagger
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beta_feature-0.2.1 lib/beta_feature/engine.rb
beta_feature-0.2.0 lib/beta_feature/engine.rb