Skip to content

Commit

Permalink
All tickets listing had PostgreSQL problem with missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
macfanatic committed Feb 17, 2013
1 parent c7dbbef commit af3c6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/tickets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def find_ticket
end
def scoped_collection
chain = end_of_association_chain.accessible_by(current_ability)
chain = chain.where(projects: { completed: false }) if @project.nil?
chain = chain.includes(:project).where(projects: { completed: false }) if @project.nil?
chain
end
def new
Expand Down

0 comments on commit af3c6ab

Please sign in to comment.