| Fix TypeError: Cannot visit Saulabs::Reportable::ReportCache::ActiveRecord_Rela… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit b1bce78aedd02ea03bdca2a3280df9118f8bb17d | |
| parent 8cb8704ce68c2699bb73c38d675b6277943fa909 | |
| Author: Martin Schùˆrrer <[email protected]> | |
| Date: Tue, 14 Jan 2014 11:25:10 +0100 | |
| Fix TypeError: Cannot visit Saulabs::Reportable::ReportCache::ActiveRecord_Rela… | |
| Diffstat: | |
| M lib/saulabs/reportable/report_cach… | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/lib/saulabs/reportable/report_cache.rb b/lib/saulabs/reportable/re… | |
| @@ -135,7 +135,7 @@ module Saulabs | |
| def self.read_cached_data(report, options) | |
| conditions = build_conditions_for_reading_cached_data(report, option… | |
| - self.where(conditions).limit(options[:limit]).order('reporting_perio… | |
| + conditions.limit(options[:limit]).order('reporting_period ASC') | |
| end | |
| def self.build_conditions_for_reading_cached_data(report, options) |