| fixed formatting - reportable - Fork of reportable required by WarVox, from hdm… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 32bffbc899f2b374c80af845ac46dd9b94c6efd8 | |
| parent ad0c943f055c555e8eabdc7abfd976b793a8edde | |
| Author: Marco Otte-Witte <[email protected]> | |
| Date: Tue, 13 Jan 2009 19:17:06 +0800 | |
| fixed formatting | |
| Signed-off-by: Marco Otte-Witte <[email protected]> | |
| Diffstat: | |
| M lib/kvlr/reports_as_sparkline/repo… | 8 ++++---- | |
| 1 file changed, 4 insertions(+), 4 deletions(-) | |
| --- | |
| diff --git a/lib/kvlr/reports_as_sparkline/report.rb b/lib/kvlr/reports_as_spar… | |
| @@ -21,12 +21,12 @@ module Kvlr #:nodoc: | |
| # * <tt>:conditions</tt> - Conditions like in ActiveRecord::Base#find; o… | |
| def initialize(klass, name, options = {}) | |
| ensure_valid_options(options) | |
| - @klass = klass | |
| - @name = name | |
| + @klass = klass | |
| + @name = name | |
| @date_column = (options[:date_column] || 'created_at').to_s | |
| @value_column = (options[:value_column] || (options[:aggregation] != :… | |
| - @aggregation = options[:aggregation] || :count | |
| - @grouping = Grouping.new(options[:grouping] || :day) | |
| + @aggregation = options[:aggregation] || :count | |
| + @grouping = Grouping.new(options[:grouping] || :day) | |
| @options = { | |
| :limit => options[:limit] || 100, | |
| :conditions => options[:conditions] || [] |