Sha256: ac164f7d0af468d0b39574aa716cbbdcf7fc1bcc29274a4e3ff642bc14e7f8f8
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 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.3.2 | lib/phlex/rails/tag_helpers.rb |
phlex-0.3.1 | lib/phlex/rails/tag_helpers.rb |
phlex-0.3.0 | lib/phlex/rails/tag_helpers.rb |