add event using like reference the logic for filter in rails_admin