diff options
Diffstat (limited to 'app/models/occurrence.rb')
| -rw-r--r-- | app/models/occurrence.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/occurrence.rb b/app/models/occurrence.rb index 591e1e07..62432d53 100644 --- a/app/models/occurrence.rb +++ b/app/models/occurrence.rb | |||
| @@ -16,7 +16,8 @@ class Occurrence < ActiveRecord::Base | |||
| 16 | :include => :node, | 16 | :include => :node, |
| 17 | :conditions => [ | 17 | :conditions => [ |
| 18 | "start_time > ? AND end_time < ?", start_time, end_time | 18 | "start_time > ? AND end_time < ?", start_time, end_time |
| 19 | ] | 19 | ], |
| 20 | :order => "start_time" | ||
| 20 | ) | 21 | ) |
| 21 | end | 22 | end |
| 22 | 23 | ||
