Update app/models/todos/undone_todos_query.rb

Co-Authored-By: Matt Rogers <mattr-@github.com>
This commit is contained in:
Jyri-Petteri Paloposki 2019-05-21 22:28:37 +03:00 committed by GitHub
parent d784b1a5eb
commit 7fc1f1bf9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ module Todos
if params[:tag]
tag = Tag.where(:name => params[:tag]).first
if not tag
return [] if !tag
return []
end
not_done_todos = not_done_todos.joins(:taggings).where('taggings.tag_id = ?', tag.id)