Sha256: a24effde450959a509888ad82bba777d9641db50c0cb775e889df0e63a37c7f2

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

require 'kaminari'
require 'csv'
module ModelInfo
  class Engine < ::Rails::Engine
    isolate_namespace ModelInfo

    initializer 'model_info', before: :load_config_initializers do |app|
      app.config.assets.precompile += %w[model_info/application.js model_info/application.css)] if app.config.assets.present?
      Rails.application.routes.append do
        mount ModelInfo::Engine, at: '/model_info'
      end

      config.paths['db/migrate'].expanded.each do |expanded_path|
        Rails.application.config.paths['db/migrate'] << expanded_path
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
model_info-1.0.0 lib/model_info/engine.rb
model_info-0.0.9 lib/model_info/engine.rb