Sha256: 7cada2b0d95553db16698938261157fbd3e7f1b23d99e48c5054c5b35d088a82

Contents?: true

Size: 583 Bytes

Versions: 24

Compression:

Stored size: 583 Bytes

Contents

module ThecoreUiCommons
  class Engine < ::Rails::Engine
    initializer 'thecore_ui_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

24 entries across 24 versions & 1 rubygems

Version Path
thecore_ui_commons-2.3.4 lib/thecore_ui_commons/engine.rb
thecore_ui_commons-2.3.3 lib/thecore_ui_commons/engine.rb
thecore_ui_commons-2.3.2 lib/thecore_ui_commons/engine.rb
thecore_ui_commons-2.3.1 lib/thecore_ui_commons/engine.rb