Sha256: aa793b8db57bb620fdb989863bc99a2293fffde6ce137f23ea7aab3552bba073
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
module Notifiable class Notification < ActiveRecord::Base serialize :payload has_many :notification_device_tokens, :class_name => 'Notifiable::NotificationDeviceToken' def apns_message @apns_message ||= (self.message.bytesize > 232 ? "#{self.message.byteslice(0, 229)}..." : self.message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notifiable-rails-0.3.0 | lib/notifiable/notification.rb |