Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed clean_token method.

  • Loading branch information...
commit 08f7398e0adaa520a2e6f64cb3c364f57c014712 1 parent d1670e7
@markbates markbates authored
Showing with 0 additions and 13 deletions.
  1. +0 −13 lib/apn_on_rails/app/models/apn/device.rb
View
13 lib/apn_on_rails/app/models/apn/device.rb
@@ -8,22 +8,9 @@ class APN::Device < ActiveRecord::Base
def token=(token)
res = token.scan(/\<(.+)\>/).first
unless res.nil? || res.empty?
- # self.token = res.first
token = res.first
end
write_attribute('token', token)
end
- before_validation :clean_token
-
- private
- def clean_token
- if self.token && self.token_changed?
- res = self.token.scan(/\<(.+)\>/).first
- unless res.nil? || res.empty?
- self.token = res.first
- end
- end
- end
-
end

0 comments on commit 08f7398

Please sign in to comment.
Something went wrong with that request. Please try again.