Method: CanCan::ControllerResource#authorize_resource

Defined in:
lib/cancan/controller_resource.rb

#authorize_resourceObject



37
38
39
40
41
# File 'lib/cancan/controller_resource.rb', line 37

def authorize_resource
  return if skip?(:authorize)

  @controller.authorize!(authorization_action, resource_instance || resource_class_with_parent)
end