Sha256: 7be0625cc5d149e40b9ac681a1bf68ac3c44cc0e06b68041ca2b36867414fba9
Contents?: true
Size: 355 Bytes
Versions: 6
Compression:
Stored size: 355 Bytes
Contents
module Notifiable class NotificationStatus < ActiveRecord::Base belongs_to :notification, :class_name => 'Notifiable::Notification' belongs_to :device_token, :class_name => 'Notifiable::DeviceToken' def opened! update_attributes({:status => -1, :uuid => nil}) end def opened? self.status == -1 end end end
Version data entries
6 entries across 6 versions & 1 rubygems