Method: APN::DeviceGrouping#same_app_id

Defined in:
lib/apn_on_rails/app/models/apn/device_grouping.rb

#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