Added doc.

This commit is contained in:
Martin Edenhofer 2016-05-16 17:02:15 +02:00
parent 59b115669a
commit 8ebe752ee1

View file

@ -40,6 +40,14 @@ class Transaction::ClearbitEnrichment
Transaction::ClearbitEnrichment.sync_user(user)
end
=begin
sync all users against clearbit
Transaction::ClearbitEnrichment.sync
=end
def self.sync
users = User.of_role('Customer')
users.each {|user|
@ -47,6 +55,20 @@ class Transaction::ClearbitEnrichment
}
end
=begin
sync one users against clearbit
Transaction::ClearbitEnrichment.sync_user(user)
users = [...]
users.each {|user|
Transaction::ClearbitEnrichment.sync_user(user)
}
=end
def self.sync_user(user)
UserInfo.current_user_id = 1