| cleanup - reportable - Fork of reportable required by WarVox, from hdm/reportab… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 278f65e1bdf79c0e43c8a68ac48086e4d934b056 | |
| parent 9a0e5ad1403a13890c482901cfbf6dc9c8ee1e09 | |
| Author: Marco Otte-Witte <[email protected]> | |
| 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(-) | |
| --- | |
| 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) | |
| 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], part… | |
| 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. |