Permalink
Browse files

removed format validation for device token - we don't need that

  • Loading branch information...
1 parent d48aa8b commit 56af72bbabc9919c3ab4337c4d898fcf9ef7b853 @ramigg committed Jan 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/apn_on_rails/app/models/apn/device.rb
@@ -15,7 +15,7 @@ class APN::Device < APN::Base
has_many :unsent_notifications, :class_name => 'APN::Notification', :conditions => 'sent_at is null'
validates_uniqueness_of :token, :scope => :app_id
- 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}$/
+ #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}$/
before_create :set_last_registered_at

0 comments on commit 56af72b

Please sign in to comment.