module Draper::ViewHelpers
Provides the {#helpers} method used in {Decorator} and {CollectionDecorator} to call the Rails
helpers.
Public Instance Methods
Source
# File lib/draper/view_helpers.rb, line 23 def helpers Draper::ViewContext.current end
Access the helpers proxy to call built-in and user-defined Rails
helpers. Aliased to ‘h` for convenience.
@return [HelperProxy] the helpers proxy
Also aliased as: h
Source
# File lib/draper/view_helpers.rb, line 31 def localize(*args) helpers.localize(*args) end
Also aliased as: l