Sha256: 8e89db0e408497bab31a0c01913ee90de8252a5eff3b0d1eed0c503d5778c3da

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

module Rpush
  module Client
    module ActiveRecord
      module Apns
        class Feedback < ::ActiveRecord::Base
          self.table_name = 'rpush_feedback'

          if Rpush.attr_accessible_available?
            attr_accessible :device_token, :failed_at, :app
          end

          validates :device_token, presence: true
          validates :failed_at, presence: true

          validates_with Rpush::Client::ActiveModel::Apns::DeviceTokenFormatValidator
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-2.0.0.beta2 lib/rpush/client/active_record/apns/feedback.rb
rpush-2.0.0.beta1 lib/rpush/client/active_record/apns/feedback.rb