From 3a4b6bb9b4634559efae27ae4abf8dde91115531 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sun, 23 Sep 2012 11:59:31 -0700 Subject: [PATCH] Fix infinite loop --- lib/showoff.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/showoff.rb b/lib/showoff.rb index dfbaa3a6d..f7bf3535d 100644 --- a/lib/showoff.rb +++ b/lib/showoff.rb @@ -503,11 +503,7 @@ def pdf(static=true) def self.do_static(what) what = "index" if !what - # Nasty hack to get the actual ShowOff module - showoff = ShowOff.new - while !showoff.is_a?(ShowOff) - showoff = showoff.instance_variable_get(:@app) - end + showoff = ShowOff.new! name = showoff.instance_variable_get(:@pres_name) path = showoff.instance_variable_get(:@root_path) logger = showoff.instance_variable_get(:@logger)