Skip to content

Commit

Permalink
Merge pull request #532 from brunoprietog/safe-operator-turbo_frame_r…
Browse files Browse the repository at this point in the history
…equest_id

Use safe operator when calling to request in turbo_frame_request_id
  • Loading branch information
jorgemanrubia committed Feb 7, 2024
2 parents 47b612b + 9f7d9ff commit 468a0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/turbo/frames/frame_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def turbo_frame_request?
end

def turbo_frame_request_id
request.headers["Turbo-Frame"]
request&.headers["Turbo-Frame"]
end
end

0 comments on commit 468a0a4

Please sign in to comment.