Corrected typo in docs

Change before method to beforeAction