diff --git a/app/models/customer.rb b/app/models/customer.rb index 2ddc50f..8a1a1cf 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -25,9 +25,9 @@ class Customer < ActiveRecord::Base self.primary_key = :id def self.all - Customer.without_callback(:initialize, :after, :pull) do + Customer.skip_callback(:initialize, :after, :pull) customers = Customer.all - end + Customer.set_callback(:initialize, :after, :pull) return customers end