Update customer.rb

This commit is contained in:
2016-05-17 11:03:22 -04:00
parent 7009387a00
commit a715434f42

View File

@@ -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)