remove UserActionObserver, replace with after_save and service

interestingly there was some left over dead code from when stars
existed in the topic_users table
This commit is contained in:
Sam
2016-12-22 15:03:40 +11:00
parent 96c70c74a1
commit 2f6a4cc6de
22 changed files with 60 additions and 42 deletions

View File

@ -10,6 +10,7 @@ describe UserActionsController do
it 'renders list correctly' do
ActiveRecord::Base.observers.enable :all
UserActionCreator.enable
post = Fabricate(:post)
xhr :get, :index, username: post.user.username