From 8775bfb9fd1c5a5bae5235bd7d8fca2570cefdda Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 11 Sep 2014 18:12:07 -0500 Subject: [PATCH] but don't freak out on the homepage if there's no active campaign --- app/controllers/outfits_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/outfits_controller.rb b/app/controllers/outfits_controller.rb index 72dbe141..7744791d 100644 --- a/app/controllers/outfits_controller.rb +++ b/app/controllers/outfits_controller.rb @@ -78,7 +78,7 @@ class OutfitsController < ApplicationController @neopets_usernames = user_signed_in? ? current_user.neopets_usernames : [] - @campaign = Campaign.current + @campaign = Campaign.current rescue nil end def show