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.
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.
# File ../../device_api/trunk/ruby/src/lib/device_api_web.rb, line 61 def get_deviceatlas_device_api_web_instance settings = nil return DeviceApiWeb.new request.env, request.cookies, settings end