Added beforeAction documentation