helpers/menu_helpers.rb
# Set instance vars related to registered mobile devices.
Set instance vars related to registered mobile devices.
Set instance vars related to registered mobile devices .
def check_registered_mobile_device
    @rmd_start_page = nil
    @rmd_scan_with_camera = false
    @hybrid_device = true
    @registered_mobile_device = true && return if ENV['RUN_FOR_RMD']
    repo = SecurityApp::RegisteredMobileDeviceRepo.new
    res = repo.ip_address_is_rmd? request.ip
    if res.success
      @registered_mobile_device = true
      @rmd_start_page = res.instance.url
      @rmd_scan_with_camera = res.instance.scan_with_camera
      @hybrid_device = res.instance.hybrid_device
    else
      @registered_mobile_device = false
    end
  end
def check_registered_mobile_device @rmd_start_page = nil @rmd_scan_with_camera = false @hybrid_device = true @registered_mobile_device = true && return if ENV [ 'RUN_FOR_RMD' ] repo = SecurityApp :: RegisteredMobileDeviceRepo . new res = repo . ip_address_is_rmd? request . ip if res . success @registered_mobile_device = true @rmd_start_page = res . instance . url @rmd_scan_with_camera = res . instance . scan_with_camera @hybrid_device = res . instance . hybrid_device else @registered_mobile_device = false end end
Set instance vars related to registered mobile devices.
Set instance vars related to registered mobile devices .