Permalink
Browse files

trying to fix

  • Loading branch information...
1 parent 2fb9c7b commit 823e975a7eb4f39ebfdb1edb7163e04ffa7fc156 @worace worace committed Mar 29, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/sales_engine/merchant.rb
  2. BIN sales_engine-1.gem
@@ -138,7 +138,11 @@ def self.dates_by_revenue(x = -1)
end
#couldn't get it working with dates; use strings, parse to dates below
-
+ dates_array.each do |i|
+ unless dates_array[i].is_a?(Date)
+ dates_array[i] = Date.parse(dates_array[i])
+ end
+ end
dates_array.slice(0...x)
end
View
Binary file not shown.

0 comments on commit 823e975

Please sign in to comment.