factorylabs-apn_on_rails 0.3.0.3 → 0.3.0.20090917115042
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ class APN::Device < APN::Base
|
|
12
12
|
|
13
13
|
has_many :notifications, :class_name => 'APN::Notification'
|
14
14
|
|
15
|
-
validates_uniqueness_of :token
|
15
|
+
validates_uniqueness_of :token
|
16
16
|
validates_format_of :token, :with => /^[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}\s[a-z0-9]{8}$/, :allow_nil => true
|
17
17
|
|
18
18
|
before_save :set_last_registered_at
|