Module: Draper::LazyHelpers
- Defined in:
- lib/draper/lazy_helpers.rb
Overview
Include this module in your decorators to get direct access to the helpers
so that you can stop typing h.
everywhere, at the cost of mixing in a
bazillion methods.
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
Sends missing methods to the HelperProxy.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
Sends missing methods to the HelperProxy.
8 9 10 11 12 |
# File 'lib/draper/lazy_helpers.rb', line 8 def method_missing(method, *args, &block) helpers.send(method, *args, &block) rescue NoMethodError super end |