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