Sha256: a3a463ee0768257952c0113a8bd6514d31d8852d012a02b0cc0345e52c53fde0

Contents?: true

Size: 683 Bytes

Versions: 28

Compression:

Stored size: 683 Bytes

Contents

module ActiveAdmin
  class Engine < ::Rails::Engine
    initializer "active_admin.load_app_path" do |app|
      ActiveAdmin::Application.setting :app_path, app.root
      ActiveAdmin::Application.setting :load_paths, [File.expand_path('app/admin', app.root)]
    end

    initializer "active_admin.precompile", group: :all do |app|
      ActiveAdmin.application.stylesheets.each do |path, _|
        app.config.assets.precompile << path
      end
      ActiveAdmin.application.javascripts.each do |path|
        app.config.assets.precompile << path
      end
    end

    initializer 'active_admin.routes' do
      require 'active_admin/helpers/routes/url_helpers'
    end
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
activeadmin-rb-1.5.2 lib/active_admin/engine.rb
activeadmin-2.8.0 lib/active_admin/engine.rb
activeadmin-rb-1.5.1 lib/active_admin/engine.rb
activeadmin-2.7.0 lib/active_admin/engine.rb
activeadmin-2.6.1 lib/active_admin/engine.rb
activeadmin-2.6.0 lib/active_admin/engine.rb
activeadmin-2.5.0 lib/active_admin/engine.rb
activeadmin-2.4.0 lib/active_admin/engine.rb
activeadmin-2.3.1 lib/active_admin/engine.rb
activeadmin-2.3.0 lib/active_admin/engine.rb
activeadmin-2.2.0 lib/active_admin/engine.rb
activeadmin-2.1.0 lib/active_admin/engine.rb
activeadmin-2.0.0 lib/active_admin/engine.rb
activeadmin-rb-1.5.0 lib/active_admin/engine.rb
activeadmin-2.0.0.rc2 lib/active_admin/engine.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/engine.rb
activeadmin-2.0.0.rc1 lib/active_admin/engine.rb
activeadmin-rb-1.4.0 lib/active_admin/engine.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/engine.rb
activeadmin-1.4.3 lib/active_admin/engine.rb