aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/integration_test.rb
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2013-11-29 19:21:49 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2013-11-29 19:21:49 -0800
commit35fd2d401938df1afc595de9b87dadd4421f44a5 (patch)
treefebfdcc97db26bbfc5cef3cc887957b5c4eb89ab /activerecord/test/cases/integration_test.rb
parent31c20a244b7e9a284d45d7aaa56f6e5277810418 (diff)
downloadrails-35fd2d401938df1afc595de9b87dadd4421f44a5.tar.gz
rails-35fd2d401938df1afc595de9b87dadd4421f44a5.tar.bz2
rails-35fd2d401938df1afc595de9b87dadd4421f44a5.zip
Raise `ArgumentError` when `has_one` is used with `counter_cache`
Previously, the `has_one` macro incorrectly accepts the `counter_cache` option due to a bug, although that options was never supported nor functional on `has_one` and `has_one ... through` relationships. It now correctly raises an `ArgumentError` when passed that option. For reference, this bug was introduced in 52f8e4b9.
Diffstat (limited to 'activerecord/test/cases/integration_test.rb')
0 files changed, 0 insertions, 0 deletions