aboutsummaryrefslogtreecommitdiffstats
path: root/railties/configs/initializers
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-03-31 01:10:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-03-31 01:10:04 +0000
commit6b9448cdd227ef3adbe2f31ecaf64bc7ef062103 (patch)
tree6814f2520554eef1b7ed69e4e284db44d00d7fd9 /railties/configs/initializers
parent2cf72ad250f7c393e6aa97384768ed803686eb97 (diff)
downloadrails-6b9448cdd227ef3adbe2f31ecaf64bc7ef062103.tar.gz
rails-6b9448cdd227ef3adbe2f31ecaf64bc7ef062103.tar.bz2
rails-6b9448cdd227ef3adbe2f31ecaf64bc7ef062103.zip
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/configs/initializers')
-rw-r--r--railties/configs/initializers/new_in_rails_3.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/configs/initializers/new_in_rails_3.rb b/railties/configs/initializers/new_in_rails_3.rb
new file mode 100644
index 0000000000..0cc1993ed9
--- /dev/null
+++ b/railties/configs/initializers/new_in_rails_3.rb
@@ -0,0 +1,5 @@
+# These settins change the behavior of Rails 2 apps and will be defaults
+# for Rails 3. You can remove this initializer when Rails 3 is released.
+
+# Only save the attributes that have changed since the record was loaded.
+ActiveRecord::Base.partial_updates = true