Commit ecbed9e5 by Ryan Bigg

Syntax highlighting makes everything better

parent 19ad6c6e
...@@ -119,43 +119,43 @@ end ...@@ -119,43 +119,43 @@ end
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
Client.with_deleted Client.with_deleted
``` ```
If you want to find only the deleted records: If you want to find only the deleted records:
``` ```ruby
Client.only_deleted Client.only_deleted
``` ```
If you want to check if a record is soft-deleted: If you want to check if a record is soft-deleted:
``` ```ruby
client.destroyed? client.destroyed?
``` ```
If you want to restore a record: If you want to restore a record:
``` ```ruby
Client.restore(id) Client.restore(id)
``` ```
If you want to restore a whole bunch of records: If you want to restore a whole bunch of records:
``` ```ruby
Client.restore([id1, id2, ..., idN]) Client.restore([id1, id2, ..., idN])
``` ```
If you want to restore a record and their dependently destroyed associated records: If you want to restore a record and their dependently destroyed associated records:
``` ```ruby
Client.restore(id, :restore => true) Client.restore(id, :restore => true)
``` ```
If you want callbacks to trigger before a restore: If you want callbacks to trigger before a restore:
``` ```ruby
before_restore :callback_name_goes_here before_restore :callback_name_goes_here
``` ```
......
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