aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/namespaced_generators_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-03 13:25:15 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-03 13:28:07 -0700
commit23bb8d77c6c5ace445659d56cf5df2adcf6c8dc3 (patch)
treeb5792b0fd965091f07e832f19bf1b3a4122aa7e0 /railties/test/generators/namespaced_generators_test.rb
parent4a62724c59d387991055dbcb86d725e26a986fda (diff)
downloadrails-23bb8d77c6c5ace445659d56cf5df2adcf6c8dc3.tar.gz
rails-23bb8d77c6c5ace445659d56cf5df2adcf6c8dc3.tar.bz2
rails-23bb8d77c6c5ace445659d56cf5df2adcf6c8dc3.zip
Correct errors in counter cache updating
The cache name should be converted to a string when given, not compared as a symbol. This edge case is already adequately covered by our tests, but was masked by another issue where we were incorrectly updating the counter cache twice. When paired with a bug where we didn't update the counter cache because we couldn't find a match with the name, this made it look like everything was working fine. Fixes #10865.
Diffstat (limited to 'railties/test/generators/namespaced_generators_test.rb')
0 files changed, 0 insertions, 0 deletions