module Draper::LazyHelpers
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.
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Sends missing methods to the {HelperProxy}.
Calls superclass method
# File lib/draper/lazy_helpers.rb, line 8 def method_missing(method, *args, &block) helpers.send(method, *args, &block) rescue NoMethodError super end