diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-25 14:22:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-25 14:22:32 -0700 |
commit | 657060b5f8c14fc6249fc19231f703a7c749d84e (patch) | |
tree | 5404526cd7e88996cf5f96123468e4c66415172a /activestorage | |
parent | 83247916c934a92f0f9d69ee13cd8532c3d16d0e (diff) | |
download | rails-657060b5f8c14fc6249fc19231f703a7c749d84e.tar.gz rails-657060b5f8c14fc6249fc19231f703a7c749d84e.tar.bz2 rails-657060b5f8c14fc6249fc19231f703a7c749d84e.zip |
Lazily add `Aggregations` to `composed_of` models
`composed_of` is a fairly rare method to call on models. This commit
adds the `Aggregations` module to models that call `composed_of` so that
models that *don't* call `composed_of` don't need to instantiate the
`aggregation_cache` hash. This saves one hash allocation per model
instance that doesn't use `composed_of`
Diffstat (limited to 'activestorage')
0 files changed, 0 insertions, 0 deletions