Sha256: 553a60da2062efb49c76487d408dcf178305cf3b2decc1fc2eff31a462e12116
Contents?: true
Size: 374 Bytes
Versions: 2
Compression:
Stored size: 374 Bytes
Contents
module FwtPushNotificationServer class DeviceToken < ActiveRecord::Base validates_uniqueness_of :token def user user_id.blank? ? nil : FwtPushNotificationServer.user_class.find_by(FwtPushNotificationServer.user_key => user_id) end def notifier return nil if provider.nil? FwtPushNotificationServer.notifiers[provider.to_sym] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fwt_push_notification_server-0.0.7 | app/models/fwt_push_notification_server/device_token.rb |
fwt_push_notification_server-0.0.7.b4 | app/models/fwt_push_notification_server/device_token.rb |