Using default_scope to recreate acts_as_paranoid in ActiveRecord 2.3
default_scope is a powerful new feature in Rails 2.3. In this tutorial you’ll learn how to use it to recreate the basic functionality of acts_as_paranoid. The final result is available in the is_paranoid gem.
Post a comment