Commit af5a2f85 by Ryan Bigg

Merge pull request #50 from tommyvyo/master

Documentation clarification
parents 763e8aee b98090c0
......@@ -90,16 +90,12 @@ 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
This gem is released under the MIT license.
\ No newline at end of file
This gem is released under the MIT 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