diff options
| author | Louise Crow <louise.crow@gmail.com> | 2012-09-12 16:52:42 +0100 |
|---|---|---|
| committer | Louise Crow <louise.crow@gmail.com> | 2012-09-12 16:52:42 +0100 |
| commit | d3c7603ba232a113310bd9591f7a4aa8b5e78ed8 (patch) | |
| tree | 841e54d8126c6395e93d386185957723cff23435 /script/rails-deploy-before-down | |
| parent | 66d4ede0a6951431b34d2414e6b56f65e9aaaf0b (diff) | |
Move default value setting for publication scheme to before_save callback rather than after_initialize - after_initialize accessing of the variable value was causing eager loading of public body translations to happen after the first attribute access, resulting in n+1 queries for translations.
Diffstat (limited to 'script/rails-deploy-before-down')
0 files changed, 0 insertions, 0 deletions
