Class: Fixably::Device

Inherits:
ApplicationResource
  • Object
show all
Defined in:
lib/fixably/resources/device.rb

Instance Method Summary collapse

Instance Method Details

#either_serial_number_or_imei_setObject



21
22
23
24
25
# File 'lib/fixably/resources/device.rb', line 21

def either_serial_number_or_imei_set
  return if serial_number.present? || imei_number1.present?

  errors.add(:base, "Either serial number or IMEI must be present")
end