Permalink
Browse files

don't reload the part context when it's already available.

  • Loading branch information...
bryanlarsen committed Nov 22, 2011
1 parent fdc12a8 commit 6048925ac8a85f584e42b6736afffd39aa5f9122
Showing with 3 additions and 3 deletions.
  1. +3 −3 dryml/lib/dryml/part_context.rb
@@ -99,11 +99,11 @@ def generate_digest(data, session)
def parse_this_id(page_this)
if this_id == "this"
if this_id == "this" || this_id == page_this.typed_id
self.this = page_this
elsif this_id =~ /^this:(.*)/
elsif this_id =~ /^(this)|(#{page_this.typed_id}):(.*)/
self.this = page_this
self.this_field = $1
self.this_field = $3
elsif this_id == "nil"
nil
else

0 comments on commit 6048925

Please sign in to comment.