@@ -79,7 +79,8 class Project < ActiveRecord::Base | |||||
79 | conditions = ["#{Issue.table_name}.project_id IN (#{ids.join(',')})"] |
|
79 | conditions = ["#{Issue.table_name}.project_id IN (#{ids.join(',')})"] | |
80 | end |
|
80 | end | |
81 | conditions ||= ["#{Issue.table_name}.project_id = ?", id] |
|
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 | yield |
|
84 | yield | |
84 | end |
|
85 | end | |
85 | end |
|
86 | end |
General Comments 0
You need to be logged in to leave comments.
Login now