Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use frozen-string-literal in ActiveRecord | Kir Shatrov | 2017-07-19 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Add cache_key_with_version and use it in ActiveSupport::Cache.expand_cache_key | David Heinemeier Hansson | 2017-05-19 | 1 | -0/+8 |
| | | | | | | This retains the existing behavior of ActiveSupport::Cache.expand_cache_key (as used by etaging) where the cache key includes the version. | ||||
* | Use recyclable cache keys (#29092) | David Heinemeier Hansson | 2017-05-18 | 1 | -2/+20 |
| | |||||
* | Remove duplicated "test" prefix | Ryuta Kamizono | 2017-04-07 | 1 | -1/+1 |
| | |||||
* | fixes #21815 | Maarten Jacobs | 2015-10-16 | 1 | -0/+25 |
| | | | | | | | | | | | | | | | The default timestamp used for AR is `updated_at` in nanoseconds! (:nsec) This causes issues on any machine that runs an OS that supports nanoseconds timestamps, i.e. not-OS X, where the cache_key of the record persisted in the database (milliseconds precision) is out-of-sync with the cache_key in the ruby VM. This commit adds: A test that shows the issue, it can be found in the separate file `cache_key_test.rb`, because - model couldn't be defined inline - transactional testing needed to be turned off to get it to pass the MySQL tests This seemed cleaner than putting it in an existing testcase file. It adds :usec as a dateformat that calculates datetime in microseconds It sets precision of cache_key to :usec instead of :nsec, as no db supports nsec precision on timestamps | ||||
* | Make sure the tests pass in the case closer to described in #8195 | Rafael Mendonça França | 2012-12-10 | 1 | -18/+0 |
| | | | | | | Conflicts: activerecord/test/models/bulb.rb activerecord/test/schema/schema.rb | ||||
* | Added regression test for #8195. | jacobstr | 2012-12-10 | 1 | -0/+18 |