diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-05-06 13:44:21 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-05-07 15:53:14 +0100 |
commit | 5280034f83a4e7f000945ee45bc96a659dcd4619 (patch) | |
tree | 144a064fd9d6ee9ef49d941abbc022597ea86ad6 /spec/controllers/widgets_controller_spec.rb | |
parent | 44be6f9014728c83adbc582baaba29c231365643 (diff) |
Remove N+1 Query
Removes the following bullet warning:
N+1 Query detected
PublicBody => [:translations]
Add to your finder: :includes => [:translations]
N+1 Query method call stack
/home/vagrant/alaveteli/app/helpers/link_to_helper.rb:70:in
`public_body_url'
/home/vagrant/alaveteli/app/helpers/link_to_helper.rb:74:in
`public_body_path'
/home/vagrant/alaveteli/app/helpers/admin_helper.rb:28:in
`public_body_both_links'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:148:in
`_app_views_admin_general_index_html_erb__1495531968_70090875267640'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:145:in
`each'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:145:in
`_app_views_admin_general_index_html_erb__1495531968_70090875267640'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
Diffstat (limited to 'spec/controllers/widgets_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions