def set_search_attributes(attributes)
        attributes = merge_search_attributes(attributes)
        attributes = symbolize_keys(attributes)
        attributes = remove_blank_attributes(attributes)

        @search_attributes = attributes
      end
def set_search_attributes(attributes)
        attributes = merge_search_attributes(attributes)
        attributes = symbolize_keys(attributes)
        attributes = remove_blank_attributes(attributes)

        @search_attributes = attributes
      end
Internal: Set @search_attributes by merging default search attributes with the ones passed to search method.

 === Options

 <tt>attributes</tt> - The hash containing the search attributes.

 === Examples

   class ProductSearch < Lupa::Search

     class Scope

       def category
         scope.where(category: search_attributes[:category])
       end

       def in_stock
         scope.where(in_stock: search_attributes[:in_stock])
       end

     end

     def default_search_attributes
       { in_stock: true }
     end

   scope  = Product.where(in_warehouse: true)
   search = ProductSearch.new(scope).search(category: 'furniture')

   set_search_attributes(category: 'furniture')
   # => { category: 'furniture', in_stock: true }

 Sets @search_attributes by merging default search attributes with the ones passed to search method.