Skip to content

Commit

Permalink
Fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Sep 23, 2012
1 parent 2992876 commit 3a4b6bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/showoff.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 3a4b6bb

Please sign in to comment.