Class: ActiveAdmin::ResourceDSL

Inherits:
DSL
  • Object
show all
Defined in:
lib/active_admin/resource_dsl.rb

Overview

This is the class where all the register blocks are evaluated.

Instance Method Summary (collapse)

Methods inherited from DSL

#action_item, #batch_action, #breadcrumb, #config, #controller, #decorate_with, #include, #menu, #navigation_menu, #run_registration_block, #sidebar

Constructor Details

- (ResourceDSL) initialize(config, resource_class)

Returns a new instance of ResourceDSL



4
5
6
7
# File 'lib/active_admin/resource_dsl.rb', line 4

def initialize(config, resource_class)
  @resource = resource_class
  super(config)
end