Skip to content

Disabling observers is not thread-safe #86

Open
@Blayr

Description

@Blayr

Disabling observers with methods like

ActiveRecord::Base.observers.disable :some_observer
   do_work
end

isn't thread-safe, and other threads will have the observer disabled for them as well.

There is a solution created by @djpate here:
https://github.com/djpate/rails-observers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions