aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-05-23 09:07:38 +1200
committerMichael Koziarski <michael@koziarski.com>2008-05-23 09:07:38 +1200
commit5b8d0f134a5766aa1b3d0945b79f04d2bb911c02 (patch)
tree0de7973dba32ea5b4ba56e2eb6f58844dee7b4ba /railties
parent888d5059bdb71e6d034d0c09d7e3b3e235fd8507 (diff)
downloadrails-5b8d0f134a5766aa1b3d0945b79f04d2bb911c02.tar.gz
rails-5b8d0f134a5766aa1b3d0945b79f04d2bb911c02.tar.bz2
rails-5b8d0f134a5766aa1b3d0945b79f04d2bb911c02.zip
Mention partial updates in environment.rb to make it easier for people to opt-in if they know it's safe
Diffstat (limited to 'railties')
-rw-r--r--railties/environments/environment.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index c33b80da4f..d03447e1d3 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -64,4 +64,7 @@ Rails::Initializer.run do |config|
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector
+
+ # Make ActiveRecord only save the attributes that have changed since the record was loaded.
+ # config.active_record.partial_updates = true
end \ No newline at end of file