2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

remove rails-observers

Rails yanked out observers many many years ago, instead the functionality
was yanked out to a gem that is very lightly maintained.

For example: if we want to upgrade to rails 5 there is no published gem

Internally the usage of observers had quite a few problem.

The series of refactors renamed a bunch of classes to give us more clarity
and removed some magic.
This commit is contained in:
Sam 2016-12-22 16:46:22 +11:00
parent 019f1a1d06
commit c531f4ded5
29 changed files with 73 additions and 89 deletions

View file

@ -81,8 +81,7 @@ describe PostTiming do
# integration test
it 'processes timings correctly' do
ActiveRecord::Base.observers.enable :all
PostActionNotifier.enable
post = Fabricate(:post)
user2 = Fabricate(:coding_horror, created_at: 1.day.ago)