hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.13k stars 329 forks source link

Migrate Turbo Native helpers to Hotwire Native #691

Closed joemasilotti closed 1 month ago

joemasilotti commented 1 month ago

This PR renames the turbo_native_app? helper to hotwire_native_app? and changes the user agent check to look for "Hotwire Native".

It is backwards compatible with existing Turbo Native apps by aliasing the turbo_native_app? helper and also checking for "Turbo Native" in the user agent.