Sha256: 45478a413ee363955f848dc1aba3e5bd71de0fafcb23e5ba90d6bd710c1f7e66

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

module CitizenBudgetModel
  class Engine < ::Rails::Engine
    isolate_namespace CitizenBudgetModel

    config.generators do |g|
      g.test_framework :rspec
      g.integration_tool :rspec
    end

    initializer :append_migrations do |app|
      # Unless the application is running within the engine, i.e. the dummy app.
      unless app.root.to_s.match(root.to_s)
        # Paths are an array-like object, so we must use `<<` instead of `+=`.
        config.paths['db/migrate'].expanded.each do |path|
          app.config.paths['db/migrate'] << path
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 lib/citizen_budget_model/engine.rb
citizen_budget_model-0.0.3 lib/citizen_budget_model/engine.rb
citizen_budget_model-0.0.2 lib/citizen_budget_model/engine.rb
citizen_budget_model-0.0.1 lib/citizen_budget_model/engine.rb