BUG FIX: Device API would return true instead of a device sometimes.
parent
42edb1f09a
commit
ca087b0c82
|
@ -22,7 +22,6 @@ module Devices
|
|||
# Remove userless devices.
|
||||
old_device.destroy! if old_device && device.users.count < 1
|
||||
end
|
||||
|
||||
device
|
||||
end
|
||||
private
|
||||
|
|
|
@ -10,7 +10,8 @@ module Devices
|
|||
end
|
||||
|
||||
def execute
|
||||
device.update_attributes inputs.except(:device)
|
||||
device.update_attributes!(inputs.except(:device))
|
||||
device
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue