aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/type_map.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-09-24 13:43:33 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-09-24 14:06:59 -0600
commit8a811c83aa386e4ad26553c913d1a450d8a98d5f (patch)
tree38a4ccfea032b37560804bcbd4222569f6d25356 /activerecord/lib/active_record/type/type_map.rb
parent8e633e505880755e7e366ccec2210bbe2b5436e7 (diff)
downloadrails-8a811c83aa386e4ad26553c913d1a450d8a98d5f.tar.gz
rails-8a811c83aa386e4ad26553c913d1a450d8a98d5f.tar.bz2
rails-8a811c83aa386e4ad26553c913d1a450d8a98d5f.zip
Encapsulate a lot of the logic from `Dirty` in an object
In order to improve the performance of dirty checking, we're going to need to duplicate all of the `previous_` methods in Active Model. However, these methods are basically the same as their non-previous counterparts, but comparing `@original_attributes` to `@previous_original_attributes` instead of `@attributes` and `@original_attributes`. This will help reduce that duplication.
Diffstat (limited to 'activerecord/lib/active_record/type/type_map.rb')
0 files changed, 0 insertions, 0 deletions