Trying to return from a block is a bad idea

This commit is contained in:
Thomas Reynolds 2012-09-13 10:51:16 -07:00
parent 06578c61fa
commit 77be952d41
3 changed files with 18 additions and 29 deletions

View file

@ -223,7 +223,7 @@ module Middleman
# messages, which can take a long time (minutes at full CPU)
# if the object is huge or has cyclic references, like this.
def to_s
"#<Middleman::Application>"
"#<Middleman::Application:0x#{object_id}>"
end
# Expand a path to include the index file if it's a directory