Method: ActionController::Helpers::ClassMethods#helpers
- Defined in:
- actionpack/lib/action_controller/metal/helpers.rb
#helpers ⇒ Object
Provides a proxy to access helper methods from outside the view.
Note that the proxy is rendered under a different view context. This may cause incorrect behavior with capture methods. Consider using [helper](AbstractController::Helpers::ClassMethods#helper) instead when using capture.
94 95 96 97 98 99 100 |
# File 'actionpack/lib/action_controller/metal/helpers.rb', line 94 def helpers @helper_proxy ||= begin proxy = ActionView::Base.empty proxy.config = config.inheritable_copy proxy.extend(_helpers) end end |