Introduction
Introduction Statistics Contact Development Disclaimer Help
ensure that the period data of new reports is a string string (prevents TypeErr…
Log
Files
Refs
README
---
commit 7223830a33501eeda436b347162c77dc400362c5
parent c66cd7bdff8d7050c328a668559809b942cd3507
Author: Lars Kuhnt <[email protected]>
Date: Tue, 26 Oct 2010 16:28:34 +0200
ensure that the period data of new reports is a string string (prevents TypeErr…
Diffstat:
M lib/saulabs/reportable/reporting_p… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/saulabs/reportable/reporting_period.rb b/lib/saulabs/reportabl…
@@ -71,7 +71,7 @@ module Saulabs
#
def self.from_db_string(grouping, db_string)
return self.new(grouping, db_string) if db_string.is_a?(Date)
- parts = grouping.date_parts_from_db_string(db_string)
+ parts = grouping.date_parts_from_db_string(db_string.to_s)
case grouping.identifier
when :hour
self.new(grouping, DateTime.new(parts[0], parts[1], parts[2], part…
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.