def wice_grid_custom_filter_params(opts = {})
      options = {
        grid_name: 'grid',
        attribute: nil,
        model:     nil,
        value:     nil
      }
      options.merge!(opts)

      [:attribute, :value].each do |key|
        raise ::Wice::WiceGridArgumentError.new("wice_grid_custom_filter_params: :#{key} is a mandatory argument") unless options[key]
      end

      attr_name = if options[:model]
        unless options[:model].nil?
          options[:model] = options[:model].constantize if options[:model].is_a? String
          raise Wice::WiceGridArgumentError.new('Option :model can be either a class or a string instance') unless options[:model].is_a? Class
        end
        options[:model].table_name + '.' + options[:attribute]
      else
        options[:attribute]
      end

      { "#{options[:grid_name]}[f][#{attr_name}][]" => options[:value] }
    end
def wice_grid_custom_filter_params(opts = {})
      options = {
        grid_name: 'grid',
        attribute: nil,
        model:     nil,
        value:     nil
      }
      options.merge!(opts)

      [:attribute, :value].each do |key|
        raise ::Wice::WiceGridArgumentError.new("wice_grid_custom_filter_params: :#{key} is a mandatory argument") unless options[key]
      end

      attr_name = if options[:model]
        unless options[:model].nil?
          options[:model] = options[:model].constantize if options[:model].is_a? String
          raise Wice::WiceGridArgumentError.new('Option :model can be either a class or a string instance') unless options[:model].is_a? Class
        end
        options[:model].table_name + '.' + options[:attribute]
      else
        options[:attribute]
      end

      { "#{options[:grid_name]}[f][#{attr_name}][]" => options[:value] }
    end
+wice_grid_custom_filter_params+ generates HTTP parameters understood by WiceGrid custom filters.
 Combined with Rails route helpers it allows to generate links leading to
 grids with pre-selected custom filters.

 Parameters:
 * <tt>:grid_name</tt> - The name of the grid. Just like parameter <tt>:name</tt> of
   <tt>initialize_grid</tt>, the parameter is optional, and when absent, the name
   <tt>'grid'</tt> is assumed
 * <tt>:attribute</tt> and <tt>:model</tt> - should be the same as <tt>:attribute</tt> and
   <tt>:model</tt> of the column declaration with the target custom filter.
 * <tt>:value</tt> - the value of the column filter.