From 7c37cda14e575c32b339d020af1327e8e3154c62 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 09:57:25 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index c8f998f..3bc9292 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -18,7 +18,9 @@ class CustomersController < ApplicationController # display a list of all customers def index - @customers = Customer.paginate(:page => params[:page]) + Customer.without_callback(:initialize, :after, :pull) do + @customers = Customer.paginate(:page => params[:page]) + end end def new