Skip to content

Commit

Permalink
don't reload the part context when it's already available.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Nov 22, 2011
1 parent fdc12a8 commit 6048925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dryml/lib/dryml/part_context.rb
Expand Up @@ -99,11 +99,11 @@ def generate_digest(data, session)




def parse_this_id(page_this) def parse_this_id(page_this)
if this_id == "this" if this_id == "this" || this_id == page_this.typed_id
self.this = page_this self.this = page_this
elsif this_id =~ /^this:(.*)/ elsif this_id =~ /^(this)|(#{page_this.typed_id}):(.*)/
self.this = page_this self.this = page_this
self.this_field = $1 self.this_field = $3
elsif this_id == "nil" elsif this_id == "nil"
nil nil
else else
Expand Down

0 comments on commit 6048925

Please sign in to comment.