aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch.rb
diff options
context:
space:
mode:
authorJames Adam <james@lazyatom.com>2011-10-26 12:51:38 +0100
committerJames Adam <james@lazyatom.com>2011-11-16 23:19:58 +0000
commit73cb0f98289923c8fa0287bf1cc8857664078d43 (patch)
tree0100820aa72a8bc5e80bd3f0cb6c2a9826ac04a7 /actionpack/lib/action_dispatch.rb
parenta152fd34d3eb0e4980c4a44dd1f71510890c5417 (diff)
downloadrails-73cb0f98289923c8fa0287bf1cc8857664078d43.tar.gz
rails-73cb0f98289923c8fa0287bf1cc8857664078d43.tar.bz2
rails-73cb0f98289923c8fa0287bf1cc8857664078d43.zip
`ActiveRecord::Base#becomes` should retain the errors of the original object.
This commit contains a simple failing test that demonstrates the behaviour we expect, and a fix. When using `becomes` to transform the type of an object, it should retain any error information that was present on the original instance.
Diffstat (limited to 'actionpack/lib/action_dispatch.rb')
0 files changed, 0 insertions, 0 deletions