1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Remove lazy_helpers macro

This commit is contained in:
Mike 2011-10-08 03:26:24 +03:00
parent 6c10302cd3
commit df33e5345c

View file

@ -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
#