Remove dummy code used for qor

This commit is contained in:
Jinzhu 2015-06-23 11:31:56 +08:00
parent d75612b86f
commit 7e587724e8
1 changed files with 1 additions and 5 deletions

View File

@ -75,12 +75,8 @@ func (s *JoinTableHandler) Setup(relationship *Relationship, tableName string, s
} }
func (s JoinTableHandler) Table(db *DB) string { 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{} { func (s JoinTableHandler) GetSearchMap(db *DB, sources ...interface{}) map[string]interface{} {
values := map[string]interface{}{} values := map[string]interface{}{}