Adding the method necessary for ransack_ui.