Skip to content
Browse files

Fix documentation to prevent misunderstandings.

  • Loading branch information...
1 parent c799356 commit f77770eaa5a133195d270a55ded4f664c47c4e78 @andremedeiros committed Mar 6, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
6 README.md
@@ -187,11 +187,13 @@ Associations are also supported. From the simplest behaviors you'd expect to mor
```ruby
class Parent < ActiveRecord::Base
- has_many :children, :class_name => "ParanoiacChild"
+ acts_as_paranoid
+ has_many :children, :class_name => "ParanoiacChild"
end
class ParanoiacChild < ActiveRecord::Base
- belongs_to :parent
+ acts_as_paranoid
+ belongs_to :parent
belongs_to :parent_including_deleted, :class_name => "Parent", :with_deleted => true
# You cannot name association *_with_deleted
end

0 comments on commit f77770e

Please sign in to comment.
Something went wrong with that request. Please try again.