Introduction
Introduction Statistics Contact Development Disclaimer Help
date_column to_sql now includes table_name to avoid ambiguous column names when…
Log
Files
Refs
README
---
commit 498c6adcdb7b2261580d7d32d6b991702fe09804
parent ad7246944c072bd3fe1632a62eecacb4be1abbe0
Author: Pedro Freitas <[email protected]>
Date: Tue, 19 Mar 2013 14:39:45 +0000
date_column to_sql now includes table_name to avoid ambiguous column names when…
Diffstat:
M lib/saulabs/reportable/report.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/saulabs/reportable/report.rb b/lib/saulabs/reportable/report.rb
@@ -122,8 +122,8 @@ module Saulabs
:conditions => conditions,
:include => options[:include],
:distinct => options[:distinct],
- :group => options[:grouping].to_sql(@date_column),
- :order => "#{options[:grouping].to_sql(@date_column)} ASC",
+ :group => options[:grouping].to_sql("#{ActiveRecord::Base.con…
+ :order => "#{options[:grouping].to_sql("#{ActiveRecord::Base.…
:limit => options[:limit]
)
end
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.