lib/groupdate/scopes.rb in groupdate-1.0.3 vs lib/groupdate/scopes.rb in groupdate-1.0.4
- old
+ new
@@ -17,10 +17,10 @@
else
raise "Unrecognized time zone"
end
# for week
- week_start = [:mon, :tue, :wed, :thu, :fri, :sat, :sun].index((options[:start] || :sun).to_sym)
+ week_start = [:mon, :tue, :wed, :thu, :fri, :sat, :sun].index((options[:start] || Groupdate.week_start).to_sym)
if field == "week" and !week_start
raise "Unrecognized :start option"
end
query =