diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-05 14:45:14 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-05 14:46:27 -0700 |
commit | 00dad0343b3aa6cf019afe3c727d4a3d95ddc383 (patch) | |
tree | 0bf5a4f0f2edb0374665a67e8ce8f190c64391b5 /activerecord/lib/active_record/scoping/named.rb | |
parent | 3d0c718644181bc7c3912c8b2b9965aeaa408bc0 (diff) | |
download | rails-00dad0343b3aa6cf019afe3c727d4a3d95ddc383.tar.gz rails-00dad0343b3aa6cf019afe3c727d4a3d95ddc383.tar.bz2 rails-00dad0343b3aa6cf019afe3c727d4a3d95ddc383.zip |
Define attribute methods before attempting to populate records
`initialize_internals_callback` will attempt to assign attributes from
the current scope, which will fail if something defined the method
and calls super (meaning it won't hit `method_missing`).
Fixes #18339
Diffstat (limited to 'activerecord/lib/active_record/scoping/named.rb')
0 files changed, 0 insertions, 0 deletions