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 build_ownership_info(ownership_ids)
          @edit ||= {}
          klass = get_class_from_controller_param(params[:controller])
          load_user_group_items(ownership_ids, klass)
          @groups = {} 
          Rbac.filtered(MiqGroup.non_tenant_groups).each { |g| @groups[g.description] = g.id.to_s }
          @edit[:object_ids] = @ownershipitems
          @view = get_db_view(klass == VmOrTemplate ? Vm : klass) 
          @view.table = ReportFormatter::Converter.records2table(@ownershipitems, @view.cols + ['id'])
          session[:edit] = @edit
        end
def build_ownership_info ( ownership_ids ) @edit ||= { } klass = get_class_from_controller_param ( params [ :controller ] ) load_user_group_items ( ownership_ids , klass ) @groups = { } Rbac . filtered ( MiqGroup . non_tenant_groups ) . each { | g | @groups [ g . description ] = g . id . to_s } @edit [ :object_ids ] = @ownershipitems @view = get_db_view ( klass == VmOrTemplate ? Vm : klass ) @view . table = ReportFormatter :: Converter . records2table ( @ownershipitems , @view . cols + [ 'id' ] ) session [ :edit ] = @edit end
Assign/unassign ownership to a set of objects
Assign / unassign ownership to a set of objects
# Create new entries hash (2nd pulldown) # Instantiate the MIQ Report view object
ownership_ids
<not_specific>