Skip to content

Commit

Permalink
fix for unexistent @this instance variable reference in template_envi…
Browse files Browse the repository at this point in the history
…ronent [#918 state:resolved]
  • Loading branch information
ddnexus committed Mar 25, 2011
1 parent 6fe77d3 commit e744d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dryml/lib/dryml/template_environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def typed_id(object=nil, attribute=nil)

id = if (typed_id = object.try.typed_id)
typed_id
elsif object == @this
elsif object == this
"this"
end
attribute ? "#{id}:#{attribute}" : id
Expand All @@ -162,7 +162,7 @@ def call_part(part_node_id, part_name, *locals)


def refresh_part(encoded_context, session, dom_id)
context = Dryml::PartContext.for_refresh(encoded_context, @this, session)
context = Dryml::PartContext.for_refresh(encoded_context, this, session)

with_part_context(context) do
send("#{context.part_name}_part", *context.locals)
Expand Down

0 comments on commit e744d2a

Please sign in to comment.