Sha256: 1cd975cdc3b533f266a97899eb0b958687669f054694e51376716f15b3900cde
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module Phlex module Rails module TagHelpers def form_with(*args, **kwargs, &block) raw @_view_context.form_with(*args, **kwargs) { |form| capture do yield( Phlex::Buffered.new(form, buffer: @_target) ) end } end def csp_meta_tag if (output = @_view_context.csp_meta_tag) @_target << output end end def csrf_meta_tags if (output = @_view_context.csrf_meta_tags) @_target << output end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.2.2 | lib/phlex/rails/tag_helpers.rb |
phlex-0.2.1 | lib/phlex/rails/tag_helpers.rb |
phlex-0.2.0 | lib/phlex/rails/tag_helpers.rb |