Fix the syntax

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-21 22:33:21 +03:00
parent 7fc1f1bf9f
commit 644cf0d9e7

View file

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