Project

General

Profile

« Previous | Next » 

Revision 826e18e7

Added by Tom Caspy over 9 years ago

Fixes #8661 - Refactor compute resource vm partials

Removed pointless try methods, renaming the new variable to new_host
to avoid possible name confusion.

View differences:

app/helpers/compute_resources_vms_helper.rb
controller_name != 'hosts' && controller_name != 'compute_attributes'
end
def new_host?(host)
host.try(:new_record?)
end
end

Also available in: Unified diff