lib/deviceatlasapi/controller.rb in deviceatlasapi-0.0.2 vs lib/deviceatlasapi/controller.rb in deviceatlasapi-0.0.3
- old
+ new
@@ -1,9 +1,9 @@
module DeviceAtlasApi
module ControllerHelpers
def get_device_data
- client = DeviceAtlasApi::Client.new(request.env['HTTP_USER_AGENT'])
+ client = DeviceAtlasApi::Client.new(request)
client.get_device_data
end
end
end
\ No newline at end of file