Browse files

Active Record Associations - minor change of DeleteRestrictionError d…

…oc for clarity
  • Loading branch information...
1 parent ef404c7 commit 538b7b97bb64f56a9d8c62f280106f3916080f6d @bryanwoods bryanwoods committed Jun 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
View
2 activerecord/lib/active_record/associations.rb
@@ -88,7 +88,7 @@ def initialize(reflection)
end
end
- # This error is raised when trying to destroy a parent instance in a N:1, 1:1 associations
+ # This error is raised when trying to destroy a parent instance in N:1 or 1:1 associations
# (has_many, has_one) when there is at least 1 child associated instance.
# ex: if @project.tasks.size > 0, DeleteRestrictionError will be raised when trying to destroy @project
class DeleteRestrictionError < ActiveRecordError #:nodoc:

0 comments on commit 538b7b9

Please sign in to comment.