Browse files

Sort entry order by begin's time

  • Loading branch information...
1 parent 604f480 commit b9875516c966395d6b4c1e775a4e87c756589f5e @tramy tramy committed May 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/daily_todo.rb
View
2 app/models/daily_todo.rb
@@ -2,6 +2,6 @@ class DailyTodo < ActiveRecord::Base
LUNCH = 1*60*60 # 1 hour for lunch
belongs_to :user
- has_many :daily_todo_entries, :dependent => :destroy
+ has_many :daily_todo_entries, :order => 'begin', :dependent => :destroy
has_many :daily_todo_comments, :dependent => :destroy
end

0 comments on commit b987551

Please sign in to comment.