Skip to content

Commit

Permalink
Fix context in presenter helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanp committed May 17, 2015
1 parent c10fef8 commit 7f0bfc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pakyow-presenter/lib/presenter/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ module AppHelpers
:template=, :page=, :path, :path=, :compose, :composer, :precompose!

def view
ViewContext.new(@presenter.view, context)
ViewContext.new(@presenter.view, self)
end

def partial(*args)
ViewContext.new(@presenter.partial(*args), context)
ViewContext.new(@presenter.partial(*args), self)
end

def template
ViewContext.new(@presenter.template, context)
ViewContext.new(@presenter.template, self)
end

def page
ViewContext.new(@presenter.page, context)
ViewContext.new(@presenter.page, self)
end

def container(*args)
ViewContext.new(@presenter.container(*args), context)
ViewContext.new(@presenter.container(*args), self)
end

def presenter
Expand Down

0 comments on commit 7f0bfc9

Please sign in to comment.