Module: Aenea::ActiveAdmin

Extended by:
ActiveSupport::Autoload
Defined in:
lib/aenea/active_admin.rb,
lib/aenea/active_admin/resource_dsl.rb,
lib/aenea/active_admin/index_as_table.rb,
lib/aenea/active_admin/resource_controller.rb,
lib/aenea/active_admin/resource_dsl/sortable_actions.rb,
lib/aenea/active_admin/index_as_table/sortable_columns.rb,
lib/aenea/active_admin/resource_dsl/use_parent_actions.rb,
lib/aenea/active_admin/resource_controller/find_sluggable.rb

Defined Under Namespace

Modules: IndexAsTable, ResourceController, ResourceDsl

Class Method Summary collapse

Class Method Details

.installObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/aenea/active_admin.rb', line 11

def self.install
  return if installed

  if defined? ::ActiveAdmin
    ::ActiveAdmin::Views::IndexAsTable.include Aenea::ActiveAdmin::IndexAsTable
    ::ActiveAdmin::ResourceController.include Aenea::ActiveAdmin::ResourceController
    ::ActiveAdmin::ResourceDSL.include Aenea::ActiveAdmin::ResourceDsl

    self.installed = true
  end
end