##// END OF EJS Templates
use includes instead of joins at Issue#visible...
Toshi MARUYAMA -
r13118:374f4dd52e13
parent child
Show More
@@ -77,7 +77,7 class Issue < ActiveRecord::Base
77 77 attr_protected :id
78 78
79 79 scope :visible, lambda {|*args|
80 joins(:project).
80 includes(:project).
81 81 references(:project).
82 82 where(Issue.visible_condition(args.shift || User.current, *args))
83 83 }
General Comments 0
You need to be logged in to leave comments. Login now