rails/activerecord/test
Stefan Kanev 0ed096ddf5 Fix counter_cache for polymorphic associations
Also removes a false positive test that depends on the fixed bug:

At this time, counter_cache does not work with polymorphic relationships
(which is a bug). The test was added to make sure that no
StaleObjectError is raised when the car is destroyed. No such error is
currently raised because the lock version is not incremented by
appending a wheel to the car.

Furthermore, `assert_difference` succeeds because `car.wheels.count`
does not check the counter cache, but the collection size. The test will
fail if it is replaced with `car.wheels_count || 0`.
2015-07-19 15:52:29 -06:00
..
active_record/connection_adapters rm Column#cast_type 2015-02-03 15:02:18 -07:00
assets
cases Fix counter_cache for polymorphic associations 2015-07-19 15:52:29 -06:00
fixtures Fix spelling of Thoughtleadering 2015-07-02 15:48:47 -04:00
migrations Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
models Fix counter_cache for polymorphic associations 2015-07-19 15:52:29 -06:00
schema Fix counter_cache for polymorphic associations 2015-07-19 15:52:29 -06:00
support Add YAML compatibility for objects from Rails 4.2 2015-03-10 11:56:45 -06:00
.gitignore
config.example.yml remove the last traces of OpenBase from our codebase. [ci skip] 2014-11-07 10:12:01 +01:00
config.rb