require 'meta_search' require 'devise' require 'kaminari' require 'sass' require 'active_admin/arbre' module ActiveAdmin autoload :VERSION, 'active_admin/version' autoload :ActionItems, 'active_admin/action_items' autoload :Application, 'active_admin/application' autoload :AssetRegistration, 'active_admin/asset_registration' autoload :Breadcrumbs, 'active_admin/breadcrumbs' autoload :Callbacks, 'active_admin/callbacks' autoload :Component, 'active_admin/component' autoload :ControllerAction, 'active_admin/controller_action' autoload :CSVBuilder, 'active_admin/csv_builder' autoload :Dashboards, 'active_admin/dashboards' autoload :Devise, 'active_admin/devise' autoload :DSL, 'active_admin/dsl' autoload :Event, 'active_admin/event' autoload :FormBuilder, 'active_admin/form_builder' autoload :Iconic, 'active_admin/iconic' autoload :Menu, 'active_admin/menu' autoload :MenuItem, 'active_admin/menu_item' autoload :Namespace, 'active_admin/namespace' autoload :PageConfig, 'active_admin/page_config' autoload :Resource, 'active_admin/resource' autoload :ResourceController, 'active_admin/resource_controller' autoload :Renderer, 'active_admin/renderer' autoload :Scope, 'active_admin/scope' autoload :Sidebar, 'active_admin/sidebar' autoload :TableBuilder, 'active_admin/table_builder' autoload :ViewFactory, 'active_admin/view_factory' autoload :ViewHelpers, 'active_admin/view_helpers' autoload :Views, 'active_admin/views' class Railtie < ::Rails::Railtie # Add load paths straight to I18n, so engines and application can overwrite it. require 'active_support/i18n' I18n.load_path += Dir[File.expand_path('../active_admin/locales/*.yml', __FILE__)] end # The instance of the configured application @@application = ::ActiveAdmin::Application.new mattr_accessor :application class << self # Gets called within the initializer def setup yield(application) application.prepare! # Dispatch request which gets triggered once in production # and on every require in development mode ActionDispatch::Callbacks.to_prepare :active_admin do ActiveAdmin.unload! Rails.application.reload_routes! end end delegate :register, :to => :application delegate :unload!, :to => :application delegate :load!, :to => :application delegate :routes, :to => :application end end require 'active_admin/comments'