Permalink
Browse files

Fixed some spelling errors in documentation about AssociationCollecti…

…on::destroy and AssociationCollection::destroy_all.

This time without the whitespace fixes and move of the destroy_all method.
  • Loading branch information...
1 parent 8e277f8 commit de55c8d7453c5fdf385b5fef9228f3327afddfcf @alloy alloy committed Mar 12, 2009
Showing with 9 additions and 5 deletions.
  1. +9 −5 activerecord/lib/active_record/associations/association_collection.rb
@@ -143,6 +143,8 @@ def transaction(*args)
end
# Remove all records from this association
+ #
+ # See delete for more info.
def delete_all
load_target
delete(@target)
@@ -200,11 +202,11 @@ def delete(*records)
end
end
- # Destroy +records+ and remove from this association calling +before_remove+
- # and +after_remove+ callbacks.
+ # Destroy +records+ and remove them from this association calling
+ # +before_remove+ and +after_remove+ callbacks.
#
- # Note this method will always remove records from database ignoring the
- # +:dependent+ option.
+ # Note that this method will _always_ remove records from the database
+ # ignoring the +:dependent+ option.
def destroy(*records)
remove_records(records) do |records, old_records|
old_records.each { |record| record.destroy }
@@ -226,7 +228,9 @@ def clear
self
end
- # Destory all the records from this association
+ # Destory all the records from this association.
+ #
+ # See destroy for more info.
def destroy_all
load_target
destroy(@target)

0 comments on commit de55c8d

Please sign in to comment.