We need to overload via `alias_method_chain` instead of monkey-patching `ActiveRecord::Base` directly in order to support Rails 2.3.8.