Fix active record observer disabling for 3-1-stable #2518

Merged
merged 1 commit into from Aug 13, 2011

Conversation

Projects
None yet
2 participants
Contributor

myronmarston commented Aug 13, 2011

This is the same fix is #2514, but applied to 3-1-stable as @josevalim requested.

Allow ActiveRecord observers to be disabled.
We have to use Observer#update rather than Observer#send since the enabled state is checked in #update before forwarding the method call on.

spastorino added a commit that referenced this pull request Aug 13, 2011

Merge pull request #2518 from myronmarston/fix_active_record_observer…
…_disabling_3-1

Fix active record observer disabling for 3-1-stable

@spastorino spastorino merged commit 41ce161 into rails:3-1-stable Aug 13, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment