Adding compatibility with ransack_ui gem (https://github.com/ndbroadbent/ransack_ui)