Skip to content

Commit

Permalink
Disable implicit Turbo-Frame fragment rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Mar 24, 2024
1 parent 49e2dac commit 9757231
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/phlex/rails/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ def render(*args, **kwargs, &block)
end

def render_in(view_context, &block)
fragments = if view_context.request
if (fragment_header = view_context.request.headers["X-Fragment"])
fragment_header.split
elsif (turbo_frame = view_context.request.headers["Turbo-Frame"])
[turbo_frame]
end
fragments = if view_context.request && (fragment_header = view_context.request.headers["X-Fragment"])
fragment_header.split
end

if block_given?
Expand Down

0 comments on commit 9757231

Please sign in to comment.