app/controllers/mixins/actions/vm_actions/ownership.rb
# Assign/unassign ownership to a set of objects
Assign/unassign ownership to a set of objects
Assign / unassign ownership to a set of objects
def valid_items_for(klass, param_ids)
          scope = klass.respond_to?(:with_ownership) ? klass.with_ownership : klass
          checked_ids = Rbac.filtered(scope.where(:id => param_ids)).pluck(:id)
          checked_ids.to_set == param_ids.to_set
        end
def valid_items_for ( klass , param_ids ) scope = klass . respond_to? ( :with_ownership ) ? klass . with_ownership : klass checked_ids = Rbac . filtered ( scope . where ( :id => param_ids ) ) . pluck ( :id ) checked_ids . to_set == param_ids . to_set end
Assign/unassign ownership to a set of objects
Assign / unassign ownership to a set of objects
klass
<not_specific>
param_ids
<not_specific>