lib/db_graph/line.rb in grosser-db_graph-0.1.2 vs lib/db_graph/line.rb in grosser-db_graph-0.1.3

- old
+ new

@@ -52,9 +52,15 @@ values = [] data.each{|name,hash|values += self.class.filled_and_sorted_values(hash, x_values)} distribute_evently(values, NUM_Y_LABELS) end + def self.url(style, model, attribute, options={}) + g = self.new(style, :at=>options.delete(:at)) + g.add model, attribute, options + g.to_url + end + private def x_values case @style when :minutes then 0..59 \ No newline at end of file