mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user