def require_access!(resource, operation = nil)
      operation ||= current_operation
      ability_from_token.access!(resource.resource_class, operation)
    end
def require_access!(resource, operation = nil)
      operation ||= current_operation
      ability_from_token.access!(resource.resource_class, operation)
    end
Private: Call this method to require additional access on extra
 resource class your controller needs access to. It will check if
 the current request token has an access permission (scope) to
 perform the operation (`:read` or `:write`) on the resource
 class.

 Examples

   before_action :require_stream
   def require_stream
     require_access! PostStream, :read
   end