Permalink
Browse files

Merge pull request #200 from philwebb/fix

Fix infinite loop and GLI-2 upgrade
  • Loading branch information...
2 parents de8f816 + 3a4b6bb commit 492ba21410b648a892b70d734b1680719d829f99 @matthewmccullough matthewmccullough committed Jan 21, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/showoff.rb
View
@@ -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)

0 comments on commit 492ba21

Please sign in to comment.