diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-04 16:49:34 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-04 16:50:02 +0530 |
commit | 4c5dc4ac0d26b9c5d97d27f7886ebc6327771895 (patch) | |
tree | f4b7c0873bfd1ceca967a4b0c874e236eff7c486 /railties/guides/source/configuring.textile | |
parent | b41ef0a448c025f1f2eef33c28ea565e38491f5c (diff) | |
download | rails-4c5dc4ac0d26b9c5d97d27f7886ebc6327771895.tar.gz rails-4c5dc4ac0d26b9c5d97d27f7886ebc6327771895.tar.bz2 rails-4c5dc4ac0d26b9c5d97d27f7886ebc6327771895.zip |
document config.active_record.dependent_restrict_raises in the configuring guide [ci skip]
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r-- | railties/guides/source/configuring.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 7e715ff79f..95f93101ab 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -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. |