Sha256: 91ea95805863b7d1094993f7ba9ae317e3d25745763d37bf1846b484219922aa

Contents?: true

Size: 441 Bytes

Versions: 15

Compression:

Stored size: 441 Bytes

Contents

module ThecoreUiRailsAdmin
  class Engine < ::Rails::Engine
    initializer 'thecore_ui_rails_admin.add_to_migrations' do |app|
      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_ui_rails_admin-2.7.7 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.5 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.4 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.3 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.2.pre.test lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.1 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.7.0 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.6.3 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.6.2 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.6.1 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.6.0 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.5.10 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.5.9 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.5.8 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-2.5.7 lib/thecore_ui_rails_admin/engine.rb