lib/trestle/form/renderer.rb in trestle-0.9.2 vs lib/trestle/form/renderer.rb in trestle-0.9.3
- old
+ new
@@ -1,13 +1,15 @@
+require "action_view/context"
+require "action_view/helpers"
+
module Trestle
class Form
class Renderer
include ::ActionView::Context
include ::ActionView::Helpers::CaptureHelper
- include HookHelper
# Whitelisted helpers will concatenate their result to the output buffer when called.
- WHITELISTED_HELPERS = [:row, :col, :render, :tab, :table, :divider, :h1, :h2, :h3, :h4, :h5, :h6, :card, :panel, :well]
+ WHITELISTED_HELPERS = [:row, :col, :hook, :render, :tab, :table, :divider, :h1, :h2, :h3, :h4, :h5, :h6, :card, :panel, :well]
# Raw block helpers will pass their block argument directly to the method
# without wrapping it in a new output buffer.
RAW_BLOCK_HELPERS = [:table, :toolbar]