Add ‘delegate_and_chain’ method and Mongoid and ActiveRecord support.