Sha256: 354aab52999f0cae74f0fd8bb949b4aa7f06d39d414c81b13d8cb83ee2ec6eda
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
module NativeHelper def current_app Native::App.find(cookies[:nativeAppId]) if cookies[:nativeAppId] end def current_platform current_app&.platform || 'web' end def native_assets stylesheet = stylesheet_link_tag "native/#{current_platform}/stylesheets/application", media: 'all', 'data-turbolinks-track': 'reload' javascript = javascript_include_tag "native/#{current_platform}/javascripts/application", 'data-turbolinks-track': 'reload' stylesheet.concat javascript end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
native-2.0.1 | app/helpers/native_helper.rb |
native-2.0.0 | app/helpers/native_helper.rb |
native-1.0.0 | app/helpers/native_helper.rb |