Module: ActiveAdmin

Defined in:
lib/active_admin_associations/active_admin_extensions.rb

Defined Under Namespace

Classes: Resource

Class Method Summary collapse

Class Method Details

.resourcesObject



9
10
11
12
13
14
15
# File 'lib/active_admin_associations/active_admin_extensions.rb', line 9

def resources
  application.namespaces.values.map{|n| 
    n.resources.resources
  }.flatten.compact.select{|r|
    r.class == ActiveAdmin::Resource
  }.map(&:resource_class)
end