fixed copy and paste error - before_action should be after_action