Skip to content

Commit

Permalink
Remove dummy code used for qor
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Jun 23, 2015
1 parent d75612b commit 7e58772
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions join_table_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{} {
Expand Down

0 comments on commit 7e58772

Please sign in to comment.