Module: Draper::ViewHelpers

Extended by:
ActiveSupport::Concern
Included in:
CollectionDecorator, Decorator
Defined in:
lib/draper/view_helpers.rb

Overview

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#helpersHelperProxy Also known as: h

Access the helpers proxy to call built-in and user-defined Rails helpers. Aliased to h for convenience.

Returns:



23
24
25
# File 'lib/draper/view_helpers.rb', line 23

def helpers
  Draper::ViewContext.current
end