ios_push_notifications 0.7 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,11 @@ module IOSPN
5
5
  validates_uniqueness_of :token
6
6
  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}$/
7
7
 
8
- # def save
9
- # self.last_registered_at = Time.now if self.last_registered_at.nil?
10
- # self.token = self.token
11
- # super()
12
- # end
8
+ def save
9
+ self.last_registered_at = Time.now if self.last_registered_at.nil?
10
+ self.token = self.token
11
+ super()
12
+ end
13
13
 
14
14
  # before_save :set_last_registered_at
15
15
  # private
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ios_push_notifications
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.7"
5
+ version: "0.9"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Seivan Heidari
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-09 00:00:00 +08:00
13
+ date: 2011-03-10 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency