Updating Rails middleware to track all controller actions