Replaced before_filter with before_action in invites_controller.rb