'Ransack multiple boolean search

I'm trying to filter with ransack two boolean attributes with the same select. Example:

Select: 

     All - (Field_1: any; Field_2: any)
Field_1: - (Field_1: true; Field_2: any)
Field_2: - (Field_1: any; Field_2: true)

I've been trying with multiple matchers but none of them worked. Is it possible to achive that using a query like this?

<%= f.select :ordered_and_received_not_eq_all, [['Only not ordered', 1, nil], ['Only not received', nil, 1]], {include_blank: 'All'}, {class: 'form-control'} %>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source