pakyow-presenter/lib/presenter/helpers.rb in pakyow-presenter-0.9.1 vs pakyow-presenter/lib/presenter/helpers.rb in pakyow-presenter-0.10.0
- old
+ new
@@ -5,29 +5,29 @@
module AppHelpers
extend Forwardable
def_delegators :@presenter, :store, :store=, :content, :view=,
- :template=, :page=, :path, :path=, :compose, :composer
+ :template=, :page=, :path, :path=, :compose, :composer, :precompose!
def view
- ViewContext.new(@presenter.view, context)
+ Presenter::ViewContext.new(@presenter.view, self)
end
def partial(*args)
- ViewContext.new(@presenter.partial(*args), context)
+ Presenter::ViewContext.new(@presenter.partial(*args), self)
end
def template
- ViewContext.new(@presenter.template, context)
+ Presenter::ViewContext.new(@presenter.template, self)
end
def page
- ViewContext.new(@presenter.page, context)
+ Presenter::ViewContext.new(@presenter.page, self)
end
def container(*args)
- ViewContext.new(@presenter.container(*args), context)
+ Presenter::ViewContext.new(@presenter.container(*args), self)
end
def presenter
@presenter
end