Class: AbAdmin::Controllers::CanCanManagerResource

Inherits:
CanCan::InheritedResource
  • Object
show all
Defined in:
lib/ab_admin/controllers/can_can_manager_resource.rb

Instance Method Summary collapse

Instance Method Details

#instance_nameObject


2
3
4
# File 'lib/ab_admin/controllers/can_can_manager_resource.rb', line 2

def instance_name
  @controller.send(:resource_instance_name)
end

#resource_classObject


6
7
8
# File 'lib/ab_admin/controllers/can_can_manager_resource.rb', line 6

def resource_class
  @controller.send(:resource_class)
end