module Mobi::Mtld::Da::Device::ControllerHelper

Controller helper to get instances of DeviceApiWeb from Rails controllers.

It is meant to detect devices without passing any User-Agent, headers or Client side properties. They will be transparently used from the request object.

Public Instance Methods

get_deviceatlas_device_api_web_instance(settings = nil) click to toggle source

Method to get an instance of DeviceApiWeb from a controller. It internally accesses the request object to get the headers and cookies we need for device detection.