Sha256: 96e8a02f3d35d12a6ab24439443540fc5dc2e6150a6b1555e6396b79ecb4a53f

Contents?: true

Size: 384 Bytes

Versions: 22

Compression:

Stored size: 384 Bytes

Contents

module ThecoreUiCommons
  class Engine < ::Rails::Engine
    initializer 'thecore_ui_commons.add_to_migrations' do |app|
      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

22 entries across 22 versions & 1 rubygems

Version Path
thecore_ui_commons-2.1.3 lib/thecore_ui_commons/engine.rb
thecore_ui_commons-2.1.2 lib/thecore_ui_commons/engine.rb