GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
For the table and key_value backends, this means the model itself is touched when updating a translation.
Fixes #101. Closes #103.
Ensure cache_key is invalidated when updating translations
For the table and key_value backends, this means the model itself is
touched when updating a translation.
When testing caching, perform the update 1 second later
MySQL's default precision isn't enough to change the updated_at
Only check for changes to translated attributes
Because we're touching when attributes are changed, this sometimes means
these hashes will include updated_at (it appears to vary based on DB and
Only include time helpers when active support is defined
Right now, we're only using them for testing with activerecord. If we
need to use them with sequel, we can add as an explicit dependency.