Module: Spree::HookHelper
- Defined in:
- app/helpers/spree/hook_helper.rb
Instance Method Summary collapse
-
#hook(hook_name, locals = {}, &block) ⇒ Object
This method is deprecated, left in place to prevent views from breaking.
Instance Method Details
#hook(hook_name, locals = {}, &block) ⇒ Object
This method is deprecated, left in place to prevent views from breaking
5 6 7 8 9 |
# File 'app/helpers/spree/hook_helper.rb', line 5 def hook(hook_name, locals = {}, &block) warn "[DEPRECATION] `hook` is deprecated" content = block_given? ? capture(&block) : '' content end |