Skip to content

Commit

Permalink
Pass the local assigns into the context of the mustache
Browse files Browse the repository at this point in the history
  • Loading branch information
foca committed Oct 9, 2009
1 parent 997775a commit f3ad01f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mustache/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def render(template, local_assigns, &block)
_copy_instance_variables_to(result)
result.view = @view
result[:yield] = @view.instance_variable_get(:@content_for_layout)
result.context.update(local_assigns)
end.to_html
end

Expand Down

0 comments on commit f3ad01f

Please sign in to comment.