Sha256: 2b156ed50db69eb5c5f10e519706eff56921ce76fcb646501ee96f89cd209c87
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
module Draper # 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. module LazyHelpers # Sends missing methods to the {HelperProxy}. def method_missing(method, *args, &block) helpers.send(method, *args, &block) rescue NoMethodError super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
draper-4.0.1 | lib/draper/lazy_helpers.rb |
draper-4.0.0 | lib/draper/lazy_helpers.rb |
draper-3.1.0 | lib/draper/lazy_helpers.rb |