no need to convert the symbosl to strings to compare them - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 3118fd1728239f14c4930bb54bf3283e3a29f8bc
(DIR) parent b3aba348ac6681628df83c23f0ac038daac16a69
(HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
Date: Tue, 27 Apr 2010 11:08:41 +0200
no need to convert the symbosl to strings to compare them
Diffstat:
M lib/saulabs/reportable/reporting_p… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/lib/saulabs/reportable/reporting_period.rb b/lib/saulabs/reportable/reporting_period.rb
@@ -111,7 +111,7 @@ module Saulabs
#
def ==(other)
if other.is_a?(Saulabs::Reportable::ReportingPeriod)
- @date_time == other.date_time && @grouping.identifier.to_s == other.grouping.identifier.to_s
+ @date_time == other.date_time && @grouping.identifier == other.grouping.identifier
elsif other.is_a?(Time) || other.is_a?(DateTime)
@date_time == parse_date_time(other)
else