summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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