Module: ActiveAdmin::Resource::Base

Included in:
ActiveAdmin::Resource
Defined in:
lib/active_admin/resource.rb

Instance Method Summary collapse

Instance Method Details

#initialize(namespace, resource_class, options = {}) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/active_admin/resource.rb', line 50

def initialize(namespace, resource_class, options = {})
  @namespace = namespace
  @resource_class_name = "::#{resource_class.name}"
  @options = default_options.merge(options)
  @sort_order = @options[:sort_order]
  @member_actions, @collection_actions = [], []
end