aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-09-28 23:28:16 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-09-28 23:28:16 +0530
commit33434f69c44d622b760eca78c5631dfce8c4ad54 (patch)
tree233f270b21b082403e6547b572887446535e0128 /guides/source/configuring.md
parentfa915461bc4892b8d53d3d4e202ba16f0dbdfe12 (diff)
parente2a7dbfe30e18cedb26a872ba0e1de4b95b513c4 (diff)
downloadrails-33434f69c44d622b760eca78c5631dfce8c4ad54.tar.gz
rails-33434f69c44d622b760eca78c5631dfce8c4ad54.tar.bz2
rails-33434f69c44d622b760eca78c5631dfce8c4ad54.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 660d730b9a..57c7867348 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -273,6 +273,12 @@ config.middleware.delete "Rack::MethodOverride"
* `config.active_record.cache_timestamp_format` controls the format of the timestamp value in the cache key. Default is `:number`.
+* `config.active_record.record_timestamps` is a boolean value which controls whether or not timestamping of `create` and `update` operations on a model occur. The default value is `true`.
+
+* `config.active_record.partial_writes` is a boolean value and controls whether or not partial writes are used (i.e. whether updates only set attributes that are dirty). Note that when using partial writes, you should also use optimistic locking `config.active_record.lock_optimistically` since concurrent updates may write attributes based on a possibly stale read state. The default value is `true`.
+
+* `config.active_record.attribute_types_cached_by_default` sets the attribute types that `ActiveRecord::AttributeMethods` will cache by default on reads. The default is `[:datetime, :timestamp, :time, :date]`.
+
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.