diff --git a/app/models/customer.rb b/app/models/customer.rb index 4df0a36..2ddc50f 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -26,8 +26,9 @@ class Customer < ActiveRecord::Base def self.all Customer.without_callback(:initialize, :after, :pull) do - return Customer.all + customers = Customer.all end + return customers end # returns a human readable string