I am using apn_on_rails for iphone push notification with rails.
Right now, the validation on token is no longer valid because the validation requires a space every 8 characters: 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}$/
http://github.com/markbates/apn_on_rails/blob/master/lib/apn_on_rails/app/models/apn/device.rb
But the device token I got from Objective-C has no space.
So I'd like to override the validation to make it: validates_format_of :token, :with => /^[a-z0-9]{64}$/
how can I do it without modifying the source inside the gem?
Thanks.