Skip to content

Commit

Permalink
Add turbo_frame_tag to whitelister form helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Aug 14, 2024
1 parent b6cca1c commit 2d6706b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trestle/form/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.ruby2_keywords(*)
include Hook::Helpers

# 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, :render, :tab, :table, :divider, :h1, :h2, :h3, :h4, :h5, :h6, :card, :panel, :well, :turbo_frame_tag]

# 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]
Expand Down

0 comments on commit 2d6706b

Please sign in to comment.