Update customer.rb

This commit is contained in:
2016-05-17 10:56:31 -04:00
parent 5117e7a479
commit 7009387a00

View File

@@ -25,9 +25,9 @@ class Customer < ActiveRecord::Base
self.primary_key = :id self.primary_key = :id
def self.all def self.all
Customer.without_callback(:initialize, :after, :pull) do Customer.skip_callback(:initialize, :after, :pull)
customers = Customer.all customers = Customer.all
end Customer.set_callback(:initialize, :after, :pull)
return customers return customers
end end