Fixed update method in AppModel
Fixed Bug: __beforeAction can now use function of models