rails-observers
rails-observers copied to clipboard
Rails observer (removed from core in Rails 4.0)
Any plans on releasing the gem with Rails 5.2.3 compatibility?
I use cache sweepers in my project and try to make it work on Rails 4 master. I have added `gem 'rails-observers'`, updated bundle. But I am still getting error...
Hi all, I need to make call while disabling one of the observers, but there is something I have noticed. Due to some sensitive information, I'll replace the names of...
Rails 5 adds `after_{create,update,delete}_commit` callback aliases. See: https://blog.bigbinary.com/2016/05/11/rails-5-adds-after_create-aliases.html This PR makes these callbacks available in observers. Includes tests to verify the callbacks were added properly. This also maintains backwards compatibility...
I am in the process of upgrading rails 3.2 to 4.1.8. So, I add the gem to make the app running without changing any code. The observer and sweeper actually...
Specifically, [this line](https://github.com/rails/rails-observers/blob/v0.1.5/test/transaction_callbacks_test.rb#L244). On Fedora, we run the test suite: ``` + ruby -Ilib:test -e 'Dir.glob '\''./test/*_test.rb'\'', &method(:require)' Run options: --seed 45546 # Running: ......................F Failure: TransactionCallbacksTest#test_after_transaction_callbacks_should_prevent_callbacks_from_being_called [/builddir/build/BUILD/rails-observers-0.1.5/usr/share/gems/gems/rails-observers-0.1.5/test/transaction_callbacks_test.rb:244]: Expected: [:after_commit]...
I'm going mad. In most of my Rspec specs I want observers to be disabled, except for some. But ActiveRecord::Base.observers.disable :all is not working. It goes through the motions, something...
This is a follow up to #50. These three callbacks were added in Rails 5 as aliases for using after_commit callback only on create, update or delete. Thus they are...