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:
parent
6c10302cd3
commit
df33e5345c
1 changed files with 0 additions and 10 deletions
|
@ -105,16 +105,6 @@ module Draper
|
||||||
end
|
end
|
||||||
alias :h :helpers
|
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
|
# Use primarily by `form_for`, this returns an instance of
|
||||||
# `ActiveModel::Name` set to the wrapped model's class name
|
# `ActiveModel::Name` set to the wrapped model's class name
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue