Skip to content
Permalink
Browse files
Don't render the calendar if there's no guild to render from
  • Loading branch information
jasonroelofs committed Dec 28, 2012
1 parent 8b851b1 commit 7303934a7945af01c99430fe0a3faeb92a15d27c
Showing 2 changed files with 4 additions and 2 deletions.
@@ -5,7 +5,7 @@ class HomeController < ApplicationController
def index
@raid_calendar_presenter = RaidCalendarPresenter.new(
current_guild
)
) if current_guild
end

end
@@ -1,3 +1,5 @@
<%= current_guild_chooser %>
<%= render_raid_calendar @raid_calendar_presenter %>
<% if @raid_calendar_presenter %>
<%= render_raid_calendar @raid_calendar_presenter %>
<% end %>

0 comments on commit 7303934

Please sign in to comment.