diff --git a/app/models/customer.rb b/app/models/customer.rb index 8a1a1cf..46a8c5d 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -24,7 +24,7 @@ class Customer < ActiveRecord::Base self.primary_key = :id - def self.all + def all Customer.skip_callback(:initialize, :after, :pull) customers = Customer.all Customer.set_callback(:initialize, :after, :pull)