This needs to be before_filter. rubocop is just being dumb