@@ -79,7 +79,8 class Project < ActiveRecord::Base | |||
|
79 | 79 | conditions = ["#{Issue.table_name}.project_id IN (#{ids.join(',')})"] |
|
80 | 80 | end |
|
81 | 81 | conditions ||= ["#{Issue.table_name}.project_id = ?", id] |
|
82 | Issue.with_scope :find => { :conditions => conditions } do | |
|
82 | # Quick and dirty fix for Rails 2 compatibility | |
|
83 | Issue.send(:with_scope, :find => { :conditions => conditions }) do | |
|
83 | 84 | yield |
|
84 | 85 | end |
|
85 | 86 | end |
General Comments 0
You need to be logged in to leave comments.
Login now