From 34122c12d13d0eaedff3bc1ccfca118ac2c69e5e Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sun, 26 Jan 2014 12:49:10 +0800 Subject: [PATCH] Add callback query --- callback_query.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 callback_query.go diff --git a/callback_query.go b/callback_query.go new file mode 100644 index 00000000..25cd97b3 --- /dev/null +++ b/callback_query.go @@ -0,0 +1,13 @@ +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) +}