From df63c9c4ae43801e1a0172db225ca6029512f54f Mon Sep 17 00:00:00 2001 From: Date: Fri, 10 Aug 2007 20:38:51 -0400 Subject: [PATCH] Fixed a bug in the graph library. --- app/controllers/graph_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index 8a11a42..38025ef 100644 --- a/app/controllers/graph_controller.rb +++ b/app/controllers/graph_controller.rb @@ -12,12 +12,12 @@ class GraphController < ApplicationController RAILS_ROOT) # fill in the data with the optional data name - @graph.data( options.fetch(:data_name, nil), options[:data] ) + @graph.data( options.fetch(:data_name, "Data"), options[:data] ) # set the labels or create an empty hash @graph.labels = options[:interval_labels] \ if options.has_key?(:interval_labels) and \ - options[:interval_labels].class = Hash + options[:interval_labels].class == Hash @graph.x_axis_label = options[:x_axis_label] \ if options.has_key?(:x_axis_label) @graph.y_axis_label = options[:y_axis_label] \ -- 2.39.2