Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document config.active_record.dependent_restrict_raises in the config…
…uring guide [ci skip]
  • Loading branch information
vijaydev committed Feb 4, 2012
1 parent b41ef0a commit 4c5dc4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/guides/source/configuring.textile
Expand Up @@ -273,6 +273,8 @@ h4. Configuring Active Record

* +config.active_record.auto_explain_threshold_in_seconds+ configures the threshold for automatic EXPLAINs (+nil+ disables this feature). Queries exceeding the threshold get their query plan logged. Default is 0.5 in development mode.

* +config.active_record.dependent_restrict_raises+ will control the behavior when an object with a <tt>:dependent => :restrict</tt> association is deleted. Setting this to false will prevent +DeleteRestrictionError+ from being raised and instead will add an error on the model object. Defaults to false in the development mode.

The MySQL adapter adds one additional configuration option:

* +ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans+ controls whether Active Record will consider all +tinyint(1)+ columns in a MySQL database to be booleans and is true by default.
Expand Down

0 comments on commit 4c5dc4a

Please sign in to comment.