summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-12 21:03:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-12 21:03:36 +0000
commitd5cc40c9b6b70b45efbe7ca284203274ccf1b53a (patch)
treee7a22807b48504f0ecb511830282236be2441b86 /app
parent76ed8cc200c5a0ddcb5484efd53f31f577c9e2f6 (diff)
downloadredmine-d5cc40c9b6b70b45efbe7ca284203274ccf1b53a.tar.gz
redmine-d5cc40c9b6b70b45efbe7ca284203274ccf1b53a.zip
Fixed: calendar and gantt broken with Rails 2.0
git-svn-id: http://redmine.rubyforge.org/svn/trunk@982 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 70b1eccd1..84eeefee4 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