Permalink
Browse files

Merge pull request #3 from bendyworks/range_for_recurring_events

Use Range instead of Enumerable to simplify SQL for recurring events
  • Loading branch information...
2 parents d7f04b7 + 6fffab9 commit 81d790289722cc32af594d0fbb490c181a8ec077 Angel N. Sciortino committed Feb 2, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/schedule_fu/finder.rb
  2. +1 −0 lib/schedule_fu/parser.rb
@@ -13,4 +13,4 @@ def conditions_for_date_finders(*args)
end
end
end
-end
+end
@@ -8,6 +8,7 @@ def parse(*args)
when String then parse_dates(args[0])
when Date then args[0]
when Time then args[0]
+ when Range then args[0]
when Enumerable then args[0].map {|arg| parse(arg)}
else raise ArgumentError, args[0].class.to_s
end

0 comments on commit 81d7902

Please sign in to comment.