module Draper::ViewHelpers::ClassMethods

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 from a class context.

@return [HelperProxy] the helpers proxy

# File lib/draper/view_helpers.rb, line 13
def helpers
  Draper::ViewContext.current
end
Also aliased as: h