Update device.rb