Skip to content

Conversation

@ryansch
Copy link
Contributor

@ryansch ryansch commented May 8, 2015

Without this PR, a persistence model will not actually save the updated_at timestamp to elasticsearch.

I've moved the change to the updated_at timestamp before the call to gateway#save. Additionally, I've changed the created_at and updated_at timestamps to be a Time to more closely match how Rails deals with timestamps and to match how the code in store.rb is treating them.

@morganick
Copy link

👍

@ryansch ryansch force-pushed the persistence-model-updated-at branch from b25bac9 to 5a93f49 Compare May 20, 2015 17:01
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could revert this. I feel more strongly about ActiveSupport::TimeWithZone as in #395. The rest of this PR is more important.

@karmi
Copy link
Contributor

karmi commented May 21, 2015

@ryansch Thanks, merged!

@karmi
Copy link
Contributor

karmi commented May 21, 2015

@ryansch And sorry it took so long, please ping me next time, I'm a bit overloaded at times and need a nudge.

@ryansch ryansch deleted the persistence-model-updated-at branch May 21, 2015 23:36
@ryansch
Copy link
Contributor Author

ryansch commented May 21, 2015

No problem! Thanks for the merge.

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

Successfully merging this pull request may close these issues.

3 participants