From 662e975c40cb380d884a4f44c06c29cc022c48af Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 19 Mar 2009 13:41:01 +0100 Subject: adding proper link --- app/models/occurrence.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/models') 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 def self.find_in_range start_time, end_time find( - :all, :conditions => [ + :all, + :include => :node, + :conditions => [ "start_time > ? AND end_time < ?", start_time, end_time ] ) -- cgit v1.3