Skip to content

Commit

Permalink
Use Range to simplify SQL for recurring events
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel N. Sciortino and Matt Gauger authored and bendyworks-admin committed Feb 2, 2012
1 parent d7f04b7 commit 6fffab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schedule_fu/finder.rb
Expand Up @@ -13,4 +13,4 @@ def conditions_for_date_finders(*args)
end
end
end
end
end
1 change: 1 addition & 0 deletions lib/schedule_fu/parser.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6fffab9

Please sign in to comment.