Remove unnecessary title.present? on LabelsFinder

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-13 17:16:51 -03:00
parent 6792644ae7
commit da9407927b

View file

@ -33,7 +33,7 @@ class LabelsFinder < UnionFinder
end
def with_title(items)
items = items.where(title: title) if title.present?
items = items.where(title: title) if title
items
end