Skip to content

Commit

Permalink
Minor changes to AR#delete/destroy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jan 10, 2009
1 parent b6f33d6 commit 7c81a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/base.rb
Expand Up @@ -764,7 +764,7 @@ def update(id, attributes)
# #
# You can delete multiple rows at once by passing an Array of <tt>id</tt>s. # You can delete multiple rows at once by passing an Array of <tt>id</tt>s.
# #
# Careful: although it is often much faster than the alternative, # Note: Although it is often much faster than the alternative,
# <tt>#destroy</tt>, skipping callbacks might bypass business logic in # <tt>#destroy</tt>, skipping callbacks might bypass business logic in
# your application that ensures referential integrity or performs other # your application that ensures referential integrity or performs other
# essential jobs. # essential jobs.
Expand Down Expand Up @@ -859,7 +859,7 @@ def update_all(updates, conditions = nil, options = {})
# reflect that no changes should be made (since they can't be # reflect that no changes should be made (since they can't be
# persisted). # persisted).
# #
# Note: the instantiation, callback execution, and deletion of each # Note: Instantiation, callback execution, and deletion of each
# record can be time consuming when you're removing many records at # record can be time consuming when you're removing many records at
# once. It generates at least one SQL +DELETE+ query per record (or # once. It generates at least one SQL +DELETE+ query per record (or
# possibly more, to enforce your callbacks). If you want to delete many # possibly more, to enforce your callbacks). If you want to delete many
Expand Down

0 comments on commit 7c81a1e

Please sign in to comment.