Introduction
Introduction Statistics Contact Development Disclaimer Help
Make sure the "condition" column is escaped. - reportable - Fork of reportable …
Log
Files
Refs
README
---
commit dd5ce7bf2dd86866f616621ed9798b5d259b37e3
parent 3259cb4e113ad36fcd708d896622deb54ae9c608
Author: Eric Lindvall <[email protected]>
Date: Wed, 23 Dec 2009 17:14:39 +0800
Make sure the "condition" column is escaped.
Diffstat:
M lib/simplabs/reports_as_sparkline/… | 2 +-
M spec/classes/report_cache_spec.rb | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/simplabs/reports_as_sparkline/report_cache.rb b/lib/simplabs/r…
@@ -82,7 +82,7 @@ module Simplabs #:nodoc:
def self.read_cached_data(report, options)
conditions = [
- 'model_name = ? AND report_name = ? AND grouping = ? AND aggregati…
+ 'model_name = ? AND report_name = ? AND grouping = ? AND aggregati…
report.klass.to_s,
report.name.to_s,
options[:grouping].identifier.to_s,
diff --git a/spec/classes/report_cache_spec.rb b/spec/classes/report_cache_spec…
@@ -122,7 +122,7 @@ describe Simplabs::ReportsAsSparkline::ReportCache do
it 'should read existing data from the cache' do
Simplabs::ReportsAsSparkline::ReportCache.should_receive(:all).once.with(
:conditions => [
- 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
+ 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
@report.klass.to_s,
@report.name.to_s,
@report.options[:grouping].identifier.to_s,
@@ -141,7 +141,7 @@ describe Simplabs::ReportsAsSparkline::ReportCache do
end_date = Time.now
Simplabs::ReportsAsSparkline::ReportCache.should_receive(:all).once.with(
:conditions => [
- 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
+ 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
@report.klass.to_s,
@report.name.to_s,
@report.options[:grouping].identifier.to_s,
@@ -162,7 +162,7 @@ describe Simplabs::ReportsAsSparkline::ReportCache do
Simplabs::ReportsAsSparkline::ReportCache.should_receive(:find).once.wit…
:all,
:conditions => [
- 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
+ 'model_name = ? AND report_name = ? AND grouping = ? AND aggregation…
@report.klass.to_s,
@report.name.to_s,
grouping.identifier.to_s,
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.