Sha256: ee0bfe2726df340041d0351970acd3492c6d0f1d69fd795a60535ffe8fd9f579

Contents?: true

Size: 448 Bytes

Versions: 10

Compression:

Stored size: 448 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

10 entries across 10 versions & 1 rubygems

Version Path
thecore_ui_rails_admin-3.0.11 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.10 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.9 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.8 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.7 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.6 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.5 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.4 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.3 lib/thecore_ui_rails_admin/engine.rb
thecore_ui_rails_admin-3.0.0 lib/thecore_ui_rails_admin/engine.rb