Created
June 9, 2013 20:58
-
-
Save bplexico/5745181 to your computer and use it in GitHub Desktop.
final SearchObserver
This file contains 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
class SearchObserver < ActiveRecord::Observer | |
observe :topic, :post, :user, :category | |
def after_save(obj) | |
obj.update_search_data_index | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment