Module: NativeHelper

Defined in:
app/helpers/native_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_appObject



3
4
5
# File 'app/helpers/native_helper.rb', line 3

def current_app
    NativeGap::App.find(cookies[:nativegapAppId]) if cookies[:nativegapAppId]
end

#current_platformObject



7
8
9
# File 'app/helpers/native_helper.rb', line 7

def current_platform
    current_app&.platform || 'web'
end

#set_nativegap_userObject



11
12
13
# File 'app/helpers/native_helper.rb', line 11

def set_nativegap_user
    current_user if current_user
end