diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-07 08:07:11 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-07 08:07:11 +1100 |
commit | 702399a111382e16e7e7b29ec7a90d98d5cd27aa (patch) | |
tree | c04e2d7e48a3072b4e7b1e8fcdac7631ff96248b /spec/controllers/user_controller_spec.rb | |
parent | 95aed91006f4e39cbf854efaa879adfda07d3838 (diff) |
Fix bug to allow updating attributes when using strip_attributes and globalize3
We do this by making strip_attributes manipulate the unsaved object so
that it doesn't interact with globalize3.
Calling 'record.attributes' would invoke the globalize3 overridden
method, which returns the stale translated attribute values.
We now use the object's values instead which are the ones we have just
assigned and want to update to.
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions