mirror of https://github.com/go-gorm/gorm.git
Remove dummy code used for qor
This commit is contained in:
parent
d75612b86f
commit
7e587724e8
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
func (s JoinTableHandler) GetSearchMap(db *DB, sources ...interface{}) map[string]interface{} {
|
||||
|
|
Loading…
Reference in New Issue