module Draper::ViewHelpers

Provides the {#helpers} method used in {Decorator} and {CollectionDecorator} to call the Rails helpers.

Public Instance Methods

h()
Alias for: helpers
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/draper/view_helpers.rb, line 23
def helpers
  Draper::ViewContext.current
end
Also aliased as: h
l(*args)
Alias for: localize
localize(*args) click to toggle source
# File lib/draper/view_helpers.rb, line 31
               def localize(*args)
  helpers.localize(*args)
end
Also aliased as: l