Correct bug with search link when no movies are found

master
Guillaume Dott 2015-11-18 12:33:53 +01:00
parent ae8cda3791
commit 2b347bb7e6
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ module Librarix
end end
def maybe_search? def maybe_search?
movies.empty? && params.key?('title') movies.all? { |k,v| v.empty? } && params.key?('title')
end end
end end
end end