app/helpers/application_helper.rb
# Check if a parent chart has been selected and applies
Check if a parent chart has been selected and applies
Check if a parent chart has been selected and applies
def perf_parent?
    @perf_options[:model] == "VmOrTemplate" &&
      @perf_options[:typ] != "realtime" &&
      VALID_PERF_PARENTS.keys.include?(@perf_options[:parent])
  end
def perf_parent? @perf_options [ :model ] == "VmOrTemplate" && @perf_options [ :typ ] != "realtime" && VALID_PERF_PARENTS . keys . include? ( @perf_options [ :parent ] ) end
Check if a parent chart has been selected and applies
Check if a parent chart has been selected and applies