Skip to content

Commit

Permalink
Return Partial Updates to be purely opt in to prevent users from inad…
Browse files Browse the repository at this point in the history
…vertently corrupting data.
  • Loading branch information
NZKoz committed May 22, 2008
1 parent 1a73e98 commit 888d505
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions railties/configs/initializers/new_rails_defaults.rb
@@ -1,9 +1,6 @@
# These settings change the behavior of Rails 2 apps and will be defaults # These settings change the behavior of Rails 2 apps and will be defaults
# for Rails 3. You can remove this initializer when Rails 3 is released. # 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

# Include ActiveRecord class name as root for JSON serialized output. # Include ActiveRecord class name as root for JSON serialized output.
ActiveRecord::Base.include_root_in_json = true ActiveRecord::Base.include_root_in_json = true


Expand Down

0 comments on commit 888d505

Please sign in to comment.