diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-31 17:28:04 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-31 17:29:35 -0700 |
commit | aebba01f437d864baf7165f19737440002016413 (patch) | |
tree | 7581aed29a35c9fb5bed4ae8685d4b7586de8bda /activerecord/lib/active_record/inheritance.rb | |
parent | 6b4a5952d3952ffc98173626e8d76e73e6140e3a (diff) | |
download | rails-aebba01f437d864baf7165f19737440002016413.tar.gz rails-aebba01f437d864baf7165f19737440002016413.tar.bz2 rails-aebba01f437d864baf7165f19737440002016413.zip |
Remove `AttributeSet#initialized_keys`
This method doesn't need to be lazy, as it is never called from reads.
The only time it is called are in write cases, where we're about to loop
through the results of it, and build the attribute objects anyway. So we
don't gain anything by dodging the instantiation here. This is the only
method that coupled `AttributeSet` to `LazyAttributeHash`, so removing
it puts us back in a place where we can use a normal hash instead.
Diffstat (limited to 'activerecord/lib/active_record/inheritance.rb')
0 files changed, 0 insertions, 0 deletions