From cae904b5a8702c210083cc63ff8ae7678c0e720c Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 10:48:59 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index ab6557d..4df0a36 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -25,8 +25,8 @@ class Customer < ActiveRecord::Base self.primary_key = :id def self.all - without_callback(:initialize, :after, :pull) do - return all + Customer.without_callback(:initialize, :after, :pull) do + return Customer.all end end