From df33e5345c2f8ee68c26c4a796a196c775bedda1 Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 8 Oct 2011 03:26:24 +0300 Subject: [PATCH] Remove lazy_helpers macro --- lib/draper/base.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/draper/base.rb b/lib/draper/base.rb index a79b4a2..909713a 100644 --- a/lib/draper/base.rb +++ b/lib/draper/base.rb @@ -105,16 +105,6 @@ module Draper end alias :h :helpers - # Calling `lazy_helpers` will make the built-in and - # user-defined Rails helpers accessible as class methods - # in the decorator without using the `h.` or `helpers.` proxy. - # - # The drawback is that you dump many methods into your decorator's - # namespace and collisions could create unexpected results. - def self.lazy_helpers - self.send(:include, Draper::LazyHelpers) - end - # Use primarily by `form_for`, this returns an instance of # `ActiveModel::Name` set to the wrapped model's class name #