Introduction
Introduction Statistics Contact Development Disclaimer Help
Merge pull request #29 from michihuber/rails4 - reportable - Fork of reportable…
Log
Files
Refs
README
---
commit 7ab93765296ffddba9b6c4ced20188a5136fc6c3
parent c02ee2af6bde90fc905d662e5d754466900a3ada
Author: Martin Kvlr <[email protected]>
Date: Mon, 5 Aug 2013 13:23:07 -0700
Merge pull request #29 from michihuber/rails4
also accept time objects when instantiating reporting periods directly
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…
@@ -70,7 +70,7 @@ module Saulabs
# the reporting period for the {Saulabs::Reportable::Grouping} as pars…
#
def self.from_db_string(grouping, db_string)
- return self.new(grouping, db_string) if db_string.is_a?(Date)
+ return self.new(grouping, db_string) if db_string.is_a?(Date) || db_st…
parts = grouping.date_parts_from_db_string(db_string.to_s)
case grouping.identifier
when :hour
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.