radar/paranoia — pull request #88 by arsduo (2013-12-09 16:46:08+00:00)
Title: Notify observers of paranoid restores

This pull request adds before and after restore hooks to notify ActiveRecord Observers if observers are available (e.g. if `notify_observers` is a method). It's compatible with both the built-in Rails 3 observers (which defines notify_observers through [inheritance](https://github.com/rails/rails/blob/3-2-stable/activerecord/lib/active_record/observer.rb#L91) from [ActiveModel::Observers](https://github.com/rails/rails/blob/4cef581fcf83f161edcd681bbda1461d5f7d5f33/activemodel/lib/active_model/observing.rb#L72)) and Rails 4's [rails-observers](https://github.com/rails/rails-observers/blob/86bfe485dc393f821796f8310cf8bfc1fad6ab3d/lib/rails/observers/active_model/observing.rb#L132). For a description of notifying observers about custom actions, see http://blog.crowdint.com/2013/04/23/fun-with-activerecord-observer.html.

Paranoia and observers -- the jokes write themselves!