Sha256: e8ae8ee2ce0418968545f6130cb0d8294cf6d020a18621a9484c9495c0c8a4fc
Contents?: true
Size: 347 Bytes
Versions: 11
Compression:
Stored size: 347 Bytes
Contents
module Notifiable class DeviceToken < ActiveRecord::Base belongs_to :app, :class_name => "Notifiable::App" has_many :notification_statuses, :class_name => "Notifiable::NotificationStatus" validates_presence_of :token, :provider, :app def user user_id.blank? ? nil : Notifiable.user_class.find(user_id) end end end
Version data entries
11 entries across 11 versions & 1 rubygems