Remove eager loading
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user