@@ -77,7 +77,7 class Issue < ActiveRecord::Base | |||||
77 | attr_protected :id |
|
77 | attr_protected :id | |
78 |
|
78 | |||
79 | scope :visible, lambda {|*args| |
|
79 | scope :visible, lambda {|*args| | |
80 |
|
|
80 | includes(:project). | |
81 | references(:project). |
|
81 | references(:project). | |
82 | where(Issue.visible_condition(args.shift || User.current, *args)) |
|
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