Sha256: 506e5d8a9d9a030d13ec666575b9ae26c5674228e4859f3140a0033e41bef619
Contents?: true
Size: 297 Bytes
Versions: 3
Compression:
Stored size: 297 Bytes
Contents
module NativeHelper def current_app NativeGap::App.find(cookies[:nativegapAppId]) if cookies[:nativegapAppId] end def current_platform current_app&.platform || 'web' end def set_nativegap_user current_user if current_user end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nativegap-3.0.2 | app/helpers/native_helper.rb |
nativegap-3.0.1 | app/helpers/native_helper.rb |
nativegap-3.0.0 | app/helpers/native_helper.rb |