Sha256: 5fd297e0397702430e286349fa32c05d35fb19c7b30114b4e4c699140b3c01fd
Contents?: true
Size: 385 Bytes
Versions: 20
Compression:
Stored size: 385 Bytes
Contents
module Notifiable class NotificationStatus < ActiveRecord::Base belongs_to :notification, :class_name => 'Notifiable::Notification' belongs_to :device_token, :class_name => 'Notifiable::DeviceToken' self.table_name = 'notifiable_statuses' def opened! update_attribute(:status, -1) end def opened? self.status == -1 end end end
Version data entries
20 entries across 20 versions & 1 rubygems