Remove eager loading

This commit is contained in:
Justin Licata 2018-11-09 10:46:25 -06:00
parent 085191fd2d
commit 08020c292b

@ -5,7 +5,7 @@ class WebsitesController < ApplicationController
before_action(:set_website, only: %w(show edit update destroy))
def index
@websites = Website.includes(:recent_pings).active.paginate(params).decorate
@websites = Website.active.paginate(params).decorate
respond_to do |format|
format.html