Class: APN::DeviceGrouping

Inherits:
Base
  • Object
show all
Defined in:
lib/apn_on_rails/app/models/apn/device_grouping.rb

Instance Method Summary collapse

Methods inherited from Base

table_name

Instance Method Details

#same_app_idObject



10
11
12
13
14
# File 'lib/apn_on_rails/app/models/apn/device_grouping.rb', line 10

def same_app_id
  unless self.group and self.device and self.group.app_id == self.device.app_id
     errors.add_to_base("device and group must belong to the same app")
  end
end