Sha256: af42124dff9a392adf0fe1a54767bae0f4bd0a9331919cfefa9278d19ce00422

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

module Notifiable
  class Notification < ActiveRecord::Base
    
    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

3 entries across 3 versions & 1 rubygems

Version Path
notifiable-rails-0.2.0 lib/notifiable/notification.rb
notifiable-rails-0.1.1 lib/notifiable/notification.rb
notifiable-rails-0.1.0 lib/notifiable/notification.rb