instance method
hotwire_native_app?
Ruby on Rails 2.0.23
Since v2.0.23 Last seen in v2.0.23Signature
hotwire_native_app?()
Hotwire Native applications are identified by having the string “Hotwire Native” as part of their user agent. Legacy Turbo Native applications use the “Turbo Native” string.
Source
# File app/controllers/turbo/native/navigation.rb, line 15
def hotwire_native_app?
request.user_agent.to_s.match?(/(Turbo|Hotwire) Native/)
end
Defined in app/controllers/turbo/native/navigation.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Native::Navigation