Revision 826e18e7
Added by Tom Caspy over 9 years ago
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
Fixes #8661 - Refactor compute resource vm partials
Removed pointless try methods, renaming the new variable to new_host
to avoid possible name confusion.