Commit 884d9b5b by Ryan Bigg

Merge pull request #214 from jdurand/patch-1

Update README.md
parents d10a7713 0031024a
...@@ -124,6 +124,16 @@ def product ...@@ -124,6 +124,16 @@ def product
end end
``` ```
If you want to include associated soft-deleted objects, you can (un)scope the association:
``` ruby
class Person < ActiveRecord::Base
belongs_to :group, -> { with_deleted }
end
Person.includes(:group).all
```
If you want to find all records, even those which are deleted: If you want to find all records, even those which are deleted:
``` ruby ``` ruby
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment