Sha256: 709eaf7762abb5038f7a5b5a1eb270444b3abc5ab138dc51ff6cc29e35d80575
Contents?: true
Size: 799 Bytes
Versions: 3
Compression:
Stored size: 799 Bytes
Contents
module ActiveAdmin class Engine < ::Rails::Engine # Set default values for app_path and load_paths before running initializers initializer "active_admin.load_app_path", before: :load_config_initializers 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
activeadmin-rails-1.7.1 | lib/active_admin/engine.rb |
activeadmin-rails-1.7.0 | lib/active_admin/engine.rb |
activeadmin-rb-1.6.0 | lib/active_admin/engine.rb |