Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Model#save should persist updated_at timestamp #389

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

Closed

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.

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.

Copy link
Contributor

karmi commented May 21, 2015

@ryansch Thanks, merged!

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
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /