gorm/callback_query.go

14 lines
237 B
Go
Raw Normal View History

2014-01-26 08:49:10 +04:00
package gorm
func Query(scope *Scope) {
}
func AfterQuery(scope *Scope) {
scope.CallMethod("AfterFind")
}
func init() {
DefaultCallback.Query().Register("query", Query)
DefaultCallback.Query().Register("after_query", AfterQuery)
}