Fixed a bug for the ActiveRecord version, and in documentation too.