Merge branch 'master' into v1.0_dev

This commit is contained in:
Jinzhu 2016-02-14 21:49:14 +08:00
commit 94fb0dd1d4
1 changed files with 1 additions and 1 deletions

View File

@ -9,8 +9,8 @@ import (
// Define callbacks for querying // Define callbacks for querying
func init() { func init() {
defaultCallback.Query().Register("gorm:query", queryCallback) defaultCallback.Query().Register("gorm:query", queryCallback)
defaultCallback.Query().Register("gorm:after_query", afterQueryCallback)
defaultCallback.Query().Register("gorm:preload", preloadCallback) defaultCallback.Query().Register("gorm:preload", preloadCallback)
defaultCallback.Query().Register("gorm:after_query", afterQueryCallback)
} }
// queryCallback used to query data from database // queryCallback used to query data from database