Sha256: 32907b0836840d9666cc80fb18bf833ca31e82a99e765f052713267129e565bf
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
module Rpush class App < ActiveRecord::Base self.table_name = 'rpush_apps' if Rpush.attr_accessible_available? attr_accessible :name, :environment, :certificate, :password, :connections, :auth_key, :client_id, :client_secret end has_many :notifications, :class_name => 'Rpush::Notification', :dependent => :destroy validates :name, :presence => true, :uniqueness => { :scope => [:type, :environment] } validates_numericality_of :connections, :greater_than => 0, :only_integer => true def service_name raise NotImplementedError end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-1.0.0-java | lib/rpush/app.rb |
rpush-1.0.0 | lib/rpush/app.rb |