diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-26 09:15:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-26 09:29:53 -0700 |
commit | 634c53ac0ec6e4036870d79783daa403bf46dad2 (patch) | |
tree | 8e7578fbdfce37efc39dd36fbc1604bd42d0bee8 /actionpack/lib/action_controller/log_subscriber.rb | |
parent | cc0e84f9bfa89750ceca38db47ce5657cc373c3d (diff) | |
download | rails-634c53ac0ec6e4036870d79783daa403bf46dad2.tar.gz rails-634c53ac0ec6e4036870d79783daa403bf46dad2.tar.bz2 rails-634c53ac0ec6e4036870d79783daa403bf46dad2.zip |
Call initialize after allocate
If someone calls allocate on the object, they'd better also call an
initialization routine too (you can't expect allocate to do any
initialization work). Before this commit, AR objects that are
instantiated from the database would call `define_attribute_methods`
twice.
Diffstat (limited to 'actionpack/lib/action_controller/log_subscriber.rb')
0 files changed, 0 insertions, 0 deletions