mongoid/mongoid-site — Issue #113: Update Documentation for Rails 3.2
Author: durran
Created: 2012-02-09 14:31:41+00:00
State: open

Creating a new Rails project and converting it to Mongoid, I followed the instructions in http://mongoid.org/docs/installation/configuration.html and then deleted `database.yml` since I have no need for a SQL db.

But then I found I needed to amend `/config/environments/development.rb` as well, or two lines that mention `active_record` give problems. Here they are commented out:

# Raise exception on mass assignment protection for Active Record models
# config.active_record.mass_assignment_sanitizer = :strict

# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5

I don't see these lines in my Rails 3.1 projects. Are they new for Rails 3.2?

I might have got this totally wrong, but if this is right then it could perhaps be added to the documentation.