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
-
#helpers ⇒ HelperProxy
(also: #h)
Access the helpers proxy to call built-in and user-defined Rails helpers.
Instance Method Details
#helpers ⇒ HelperProxy Also known as: h
Access the helpers proxy to call built-in and user-defined
Rails helpers. Aliased to h
for convenience.
23 24 25 |
# File 'lib/draper/view_helpers.rb', line 23 def helpers Draper::ViewContext.current end |