Commit d2814b3a by Ryan Bigg

Add details about accessing soft-deleted associations

parent 57310eb9
...@@ -94,6 +94,16 @@ class Client < ActiveRecord::Base ...@@ -94,6 +94,16 @@ class Client < ActiveRecord::Base
end end
``` ```
If you want to access soft-deleted associations, override the getter method:
```ruby
def product
Product.unscoped { super }
end
```
## Acts As Paranoid Migration
You can replace the older acts_as_paranoid methods as follows: You can replace the older acts_as_paranoid methods as follows:
| Old Syntax | New Syntax | | Old Syntax | New Syntax |
......
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