app/models/landable/page_search_engine.rb in landable-1.13.1 vs app/models/landable/page_search_engine.rb in landable-1.13.2

- old
+ new

@@ -6,15 +6,14 @@ def initialize(filters, options = {}) super Page.all, filters, options end def filter_by!(filters) - if ids = as_array(filters[:ids]) - @scope = @scope.where(page_id: ids) - end + ids = as_array(filters[:ids]) + @scope = @scope.where(page_id: ids) if ids - if path = filters[:path].presence - @scope = @scope.with_fuzzy_path(path) - end + path = filters[:path].presence + return unless path + @scope = @scope.with_fuzzy_path(path) end end end