Please sign in to comment.
Revert "Key the attributes hash with symbols"
This reverts commit 86c3dfb. Conflicts: activerecord/lib/active_record/attribute_methods/read.rb Reason: whilst this increased performance, it also presents a DoS risk via memory exhaustion if users were allowing user input to dictate the arguments of read/write_attribute. I will investigate alternative ways to cut down on string allocations here.
- Loading branch information...
Showing with 10 additions and 14 deletions.