Update device.rb

attribute accessible changed as per requirement