Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

last_registered_at documentation #26

Open
breiko83 opened this issue Feb 3, 2011 · 0 comments
Open

last_registered_at documentation #26

breiko83 opened this issue Feb 3, 2011 · 0 comments

Comments

@breiko83
Copy link

breiko83 commented Feb 3, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant