cleanup - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 278f65e1bdf79c0e43c8a68ac48086e4d934b056
(DIR) parent 9a0e5ad1403a13890c482901cfbf6dc9c8ee1e09
(HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
Date: Wed, 24 Mar 2010 21:59:09 +0100
cleanup
Diffstat:
M lib/saulabs/reportable/reporting_p… | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
(DIR) diff --git a/lib/saulabs/reportable/reporting_period.rb b/lib/saulabs/reportable/reporting_period.rb
@@ -71,7 +71,7 @@ module Saulabs
#
def self.from_db_string(grouping, db_string)
parts = grouping.date_parts_from_db_string(db_string)
- result = case grouping.identifier
+ case grouping.identifier
when :hour
self.new(grouping, DateTime.new(parts[0], parts[1], parts[2], parts[3], 0, 0))
when :day
@@ -81,7 +81,6 @@ module Saulabs
when :month
self.new(grouping, Date.new(parts[0], parts[1], 1))
end
- result
end
# Gets the next reporting period.