From 9876ebf6edb1d95494a83c75f16f2e1cc5a78ce2 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 10:42:19 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/customer.rb b/app/models/customer.rb index 21d60b8..ab6557d 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -24,6 +24,12 @@ class Customer < ActiveRecord::Base self.primary_key = :id + def self.all + without_callback(:initialize, :after, :pull) do + return all + end + end + # returns a human readable string def to_s return name