@white_player = game, black_player, white_player end def show_messaging?(&block) messaging_should_be_visible = @game.player?(@user) && @black_player.present? && @white_player.present? yield block if messaging_should_be_visible end end <%- game_presenter.show_messaging? do %> <%= render :template => 'messaging' %> <%- end %> Tuesday, 20 September 11