From d5cc40c9b6b70b45efbe7ca284203274ccf1b53a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 12 Dec 2007 21:03:36 +0000 Subject: [PATCH] Fixed: calendar and gantt broken with Rails 2.0 git-svn-id: http://redmine.rubyforge.org/svn/trunk@982 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 70b1eccd..84eeefee 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -79,7 +79,8 @@ class Project < ActiveRecord::Base conditions = ["#{Issue.table_name}.project_id IN (#{ids.join(',')})"] end conditions ||= ["#{Issue.table_name}.project_id = ?", id] - Issue.with_scope :find => { :conditions => conditions } do + # Quick and dirty fix for Rails 2 compatibility + Issue.send(:with_scope, :find => { :conditions => conditions }) do yield end end -- 2.11.0