Method: Rpush::Client::ActiveModel::Apns::App.included

Defined in:
lib/rpush/client/active_model/apns/app.rb

.included(base) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rpush/client/active_model/apns/app.rb', line 6

def self.included(base)
  base.instance_eval do
    validates :environment, presence: true, inclusion: { in: %w(development production sandbox) }
    validates :certificate, presence: true
    validate :certificate_has_matching_private_key
  end
end