Class: DryAdmin::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/dry_admin/application_controller.rb

Direct Known Subclasses

DashboardsController, ResourcesController

Instance Method Summary collapse

Instance Method Details



6
7
8
9
# File 'app/controllers/dry_admin/application_controller.rb', line 6

def menu
	Rails.application.eager_load!
	@models = ActiveRecord::Base.descendants.reject {|m| m.name == "ApplicationRecord" or m.name == "ActiveRecord::SchemaMigration" or m.name == "DryAdmin::ApplicationRecord"}
end