Fixed issue with returning relation if params[:field] is empty