Skip to content

Commit

Permalink
Merge pull request #11 from macfanatic/7_tickets_listing_includes_pro…
Browse files Browse the repository at this point in the history
…blem

All tickets listing had PostgreSQL problem with missing includes
  • Loading branch information
macfanatic committed Feb 17, 2013
2 parents c7dbbef + af3c6ab commit c74863a
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 c74863a

Please sign in to comment.