Project

General

Profile

« Previous | Next » 

Revision 53c61d6d

Added by Ohad Levy over 12 years ago

  • ID 53c61d6ddb5498d82aa46cba9fa1efb1f0679438

added parenthesis to avoid warnings on older Ruby

View differences:

app/controllers/hypervisors/guests_controller.rb
if (@guest.send(action) rescue false)
state = @guest.running? ? "running" : "stopped"
notice "#{@guest.name} is now #{state}"
redirect_to hypervisor_guests_path params[:hypervisor_id]
redirect_to hypervisor_guests_path(params[:hypervisor_id])
else
error "failed to #{action} #{@guest.name}"
redirect_to :back

Also available in: Unified diff