module StrongPresenter::ViewHelpers
Copy of Draper::ViewHelpers
Public Instance Methods
helpers()
click to toggle source
Access the helpers proxy to call built-in and user-defined Rails
helpers. Aliased to `h` for convenience.
@return [HelperProxy] the helpers proxy
# File lib/strong_presenter/view_helpers.rb, line 26 def helpers StrongPresenter::ViewContext.current end
Also aliased as: h
localize(*args)
click to toggle source
Alias for `helpers.localize`, since localize is something that's used quite often. Further aliased to `l` for convenience.
# File lib/strong_presenter/view_helpers.rb, line 33 def localize(*args) helpers.localize(*args) end
Also aliased as: l