Sha256: e7ebd8caecbba7567d9a303c7459aba5f027e73488670985929ed8768a9ecae3

Contents?: true

Size: 593 Bytes

Versions: 15

Compression:

Stored size: 593 Bytes

Contents

module ThecoreBackendCommons
  class Engine < ::Rails::Engine
    initializer 'thecore_backend_commons.add_to_migrations' do |app|
      # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
      # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
      Thecore::Base.thecore_engines << self.class
      unless app.root.to_s.match root.to_s
        # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
        config.paths['db/migrate'].expanded.each do |expanded_path|
          app.config.paths['db/migrate'] << expanded_path
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
thecore_backend_commons-3.0.6 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-3.0.5 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-3.0.4 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-3.0.3 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-3.0.0 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.4.1 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.4.0 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.10 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.9 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.8 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.7 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.6 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.5 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.4 lib/thecore_backend_commons/engine.rb
thecore_backend_commons-2.3.3 lib/thecore_backend_commons/engine.rb