Commit 4469ca6f by Thomas Vendetta

Added a table to show new syntax (I never used old gem, so for a minutes I was confused)

parent 763e8aee
......@@ -90,15 +90,11 @@ end
You can replace the older acts_as_paranoid methods as follows:
```ruby
find_with_deleted(:all) # => with_deleted
find_with_deleted(:first) # => with_deleted.first
find_with_deleted(id) # => with_deleted.find(id)
find_only_deleted(:all) # => only_deleted
find_only_deleted(:first) # => only_deleted.first
find_only_deleted(id) # => only_deleted.find(id)
```
| Old Syntax | New Syntax |
| -------------------------- | ------------------------------ |
|`find_with_deleted(:all)` | `Client.with_deleted` |
|`find_with_deleted(:first)` | `Client.with_deleted.first` |
|`find_with_deleted(id)` | `Client.with_deleted.find(id)` |
## License
......
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