Skip to content

Commit

Permalink
Fix documentation to prevent misunderstandings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Medeiros committed Mar 6, 2014
1 parent c799356 commit f77770e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f77770e

Please sign in to comment.