Sha256: 4baa4922119344e390306018967d9180a43bd3b5a438edb787aea7378ef853ed

Contents?: true

Size: 494 Bytes

Versions: 88

Compression:

Stored size: 494 Bytes

Contents

require "rails"

module CanvasSync
  class Engine < ::Rails::Engine
    isolate_namespace CanvasSync

    initializer :append_migrations do |app|
      config.paths["db/migrate"].expanded.each do |expanded_path|
        app.config.paths["db/migrate"] << expanded_path
      end
      # Apartment will modify this, but it doesn't fully support engine migrations, so we'll reset it here
      ActiveRecord::Migrator.migrations_paths = Rails.application.paths["db/migrate"].to_a
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
canvas_sync-0.17.0.beta14 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta13 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta12 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta11 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta10 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta9 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta8 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta7 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta6 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta5 lib/canvas_sync/engine.rb
canvas_sync-0.11.1 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta4 lib/canvas_sync/engine.rb
canvas_sync-0.16.5 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta3 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta2 lib/canvas_sync/engine.rb
canvas_sync-0.17.0.beta1 lib/canvas_sync/engine.rb
canvas_sync-0.16.4 lib/canvas_sync/engine.rb
canvas_sync-0.16.3 lib/canvas_sync/engine.rb
canvas_sync-0.16.2 lib/canvas_sync/engine.rb
canvas_sync-0.16.1 lib/canvas_sync/engine.rb