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 ownership(ownership_ids = [])
          @sb[:explorer] = true if @explorer
          @in_a_form = @ownershipedit = true
          drop_breadcrumb(:name => _("Set Ownership"), :url => "/vm_common/ownership")
          ownership_ids = params[:rec_ids] if params[:rec_ids]
          @origin_ownership_items = ownership_ids
          build_ownership_info(ownership_ids)
          return if @ownershipitems.empty?
          build_targets_hash(@ownershipitems)
          if @sb[:explorer]
            @refresh_partial = "shared/views/ownership"
          else
            render :action => "show"
          end
        end
def ownership ( ownership_ids = [ ] ) @sb [ :explorer ] = true if @explorer @in_a_form = @ownershipedit = true drop_breadcrumb ( :name => _ ( "Set Ownership" ) , :url => "/vm_common/ownership" ) ownership_ids = params [ :rec_ids ] if params [ :rec_ids ] @origin_ownership_items = ownership_ids build_ownership_info ( ownership_ids ) return if @ownershipitems . empty? build_targets_hash ( @ownershipitems ) if @sb [ :explorer ] @refresh_partial = "shared/views/ownership" else render :action => "show" end end
Assign/unassign ownership to a set of objects
Assign / unassign ownership to a set of objects
ownership_ids
<not_specific>