aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-09-12 16:52:42 +0100
committerLouise Crow <louise.crow@gmail.com>2012-09-12 16:52:42 +0100
commitd3c7603ba232a113310bd9591f7a4aa8b5e78ed8 (patch)
tree841e54d8126c6395e93d386185957723cff23435 /app/models/info_request.rb
parent66d4ede0a6951431b34d2414e6b56f65e9aaaf0b (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 'app/models/info_request.rb')
0 files changed, 0 insertions, 0 deletions