From 7e587724e850cc3c9d84a004efe3466517e2ec76 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Tue, 23 Jun 2015 11:31:56 +0800 Subject: [PATCH] Remove dummy code used for qor --- join_table_handler.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/join_table_handler.go b/join_table_handler.go index dceb4277..ac909966 100644 --- a/join_table_handler.go +++ b/join_table_handler.go @@ -75,11 +75,7 @@ func (s *JoinTableHandler) Setup(relationship *Relationship, tableName string, s } func (s JoinTableHandler) Table(db *DB) string { - if draftMode, ok := db.Get("publish:draft_mode"); ok && draftMode.(bool) { - return s.TableName + "_draft" - } else { - return s.TableName - } + return s.TableName } func (s JoinTableHandler) GetSearchMap(db *DB, sources ...interface{}) map[string]interface{} {