aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/translation.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-09-24 15:16:06 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-09-24 15:16:06 -0600
commit20b177b78ef5d21c8cc255f0376f6b2e948de234 (patch)
tree08283c6556aa7545ce31cd1bd51bb8be0467eb63 /actionpack/lib/abstract_controller/translation.rb
parent370ef3e8bbafb5076737f9d9a79d83f70123a228 (diff)
downloadrails-20b177b78ef5d21c8cc255f0376f6b2e948de234.tar.gz
rails-20b177b78ef5d21c8cc255f0376f6b2e948de234.tar.bz2
rails-20b177b78ef5d21c8cc255f0376f6b2e948de234.zip
Apply subsecond precision on assignment when using TZ aware attributes
When a time object was assigned to a datetime column, the decorator for TZ aware attributes wouldn't call super, so when using a database without support for subsecond precision, the nanosecond would not be truncated, leading to the value being marked as changed. Interestingly, this also shows our new implementation of dirty checking to be more robust than the old one (with less code and better performance! :tada:!!!)
Diffstat (limited to 'actionpack/lib/abstract_controller/translation.rb')
0 files changed, 0 insertions, 0 deletions