Created
April 11, 2017 04:11
-
-
Save bleonard/52153ba41ad8ed2a2e81df00172f3bc2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whenever the user changes | |
subscribe 'user_may_have_changed', bus_observer_touched: 'user' do |attributes| | |
# update the profile in ElasticSearch | |
ProfileStoreWorker.enqueue(user_id: attributes['id']) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment