From 5b8d0f134a5766aa1b3d0945b79f04d2bb911c02 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Fri, 23 May 2008 09:07:38 +1200 Subject: Mention partial updates in environment.rb to make it easier for people to opt-in if they know it's safe --- railties/environments/environment.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'railties') 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 -- cgit v1.2.3