def apply_filter(records, options = {})
      if apply_filter?(records, options)
        records.where(filter_params)
      else
        records
      end
    end
def apply_filter(records, options = {})
      if apply_filter?(records, options)
        records.where(filter_params)
      else
        records
      end
    end
Apply default equality filters.
   e.g.: User.where(name: 'Foobar')

 @param records [ActiveRecord::Relation, Array] collection of records
   e.g.: User.all or [{ id: 1, name: 'Tiago' }, { id: 2, name: 'Doug' }]

 @param options [Hash] JU's options
   e.g.: { filter: false, paginate: false }

 @return [ActiveRecord::Relation, Array]

 @api public