PRX / apn_on_rails

Apple Push Notifications on Rails
http://rubydoc.info/github/PRX/apn_on_rails/master/frames
MIT License
538 stars 156 forks source link

last_registered_at documentation #26

Open breiko83 opened 13 years ago

breiko83 commented 13 years ago

Hello, first of all, thanks for your work and efforts on apn_on_rails. It's a great tool!

I've found your readme a bit confusing about last_registered_at field, that I suppose is really important.

Every time my app start I do something like:

Device.create(:token => '5gxadhy6 6zmtxfl6 5zpbcxmw ez3w7ksf qscpr55t trknkzap 7yyt45sc g6jrw7qz',:app_id=>1)

but this does not touch last_registered_at if the device already exist.

So i guess it's missing in your documentation how to touch last_registered_at field that I guess you can do with:

device = APN::Device.find(1) device.set_last_registered_at device.save