<commit_before># Overview

For instructions on upgrading to newer versions, visit
[mongoid.org](http://mongoid.org/en/mongoid/docs/upgrading.html).

## 4.0.0

### Major Changes (Backwards Incompatible)

* Mongoid now requires Active Model 4 or higher.

* \#2659 `Mongoid::Railtie` now properly uses only one initializer and
  the name has changed to `mongoid.load-config`.

* \#2656 `rake db:reseed` is now `rake db:reset` (<NAME>)

* \#2648 `Boolean` becomes `Mongoid::Boolean` to avoid polluting the global
  namespace with a commonly used class by other libraries.

* \#2433 `Mongoid::Paranoia` has been removed.

* \#2432 `Mongoid::Versioning` has been removed.

* \#2200 Mass assignment security now mirrors Rails 4's behavior.

## 3.1.0

### New Features

* The minimum MongoDB requirement is now raised to 2.2, since we now
  depend on the aggregation framework.

* The minimum Active Model and Active Support dependencies have been
  raised to 3.2.

* \#2809 Relations can now specify a primary key to use instead of the
  id on foreign keys.<commit_msg>Update changelog<commit_after># Overview

For instructions on upgrading to newer versions, visit
[mongoid.org](http://mongoid.org/en/mongoid/docs/upgrading.html).

## 4.0.0

### Major Changes (Backwards Incompatible)

* Mongoid now requires Active Model 4 or higher.

* \#2659 `Mongoid::Railtie` now properly uses only one initializer and
  the name has changed to `mongoid.load-config`.

* \#2656 `rake db:reseed` is now `rake db:reset` (<NAME>)

* \#2648 `Boolean` becomes `Mongoid::Boolean` to avoid polluting the global
  namespace with a commonly used class by other libraries.

* \#2433 `Mongoid::Paranoia` has been removed.

* \#2432 `Mongoid::Versioning` has been removed.

* \#2200 Mass assignment security now mirrors Rails 4's behavior.

## 3.1.1

### Resolved Issues

* \#2839 Validations fixed to use the type cast value with the exception
  of the numericality validator. (<NAME>)

## 3.1.0

### New Features

* The minimum MongoDB requirement is now raised to 2.2, since we now
  depend on the aggregation framework.

* The minimum Active Model and Active Support dependencies have been
  raised to 3.2.

* \#2809 Relations can now specify a primary key to use instead of the
  id on foreign keys.
{'fraction_non_alphanumeric': 0.09894459102902374, 'fraction_numerical': 0.03825857519788918, 'mean_word_length': 4.1008968609865475, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5162335', 'n_tokens_mistral': 763, 'n_tokens_neox': 676, 'n_words': 288}