diff options
| author | hukl <contact@smyck.org> | 2009-03-19 13:41:01 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-19 13:41:01 +0100 |
| commit | 662e975c40cb380d884a4f44c06c29cc022c48af (patch) | |
| tree | 01ab2b9607c4a95c7220729ec783375da57d78ef /app/models | |
| parent | c91ae5153e735ebf8726055871b05c49fc6afdd7 (diff) | |
adding proper link
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/occurrence.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/occurrence.rb b/app/models/occurrence.rb index 4a5f64a..a8e76a5 100644 --- a/app/models/occurrence.rb +++ b/app/models/occurrence.rb | |||
| @@ -12,7 +12,9 @@ class Occurrence < ActiveRecord::Base | |||
| 12 | 12 | ||
| 13 | def self.find_in_range start_time, end_time | 13 | def self.find_in_range start_time, end_time |
| 14 | find( | 14 | find( |
| 15 | :all, :conditions => [ | 15 | :all, |
| 16 | :include => :node, | ||
| 17 | :conditions => [ | ||
| 16 | "start_time > ? AND end_time < ?", start_time, end_time | 18 | "start_time > ? AND end_time < ?", start_time, end_time |
| 17 | ] | 19 | ] |
| 18 | ) | 20 | ) |
