Commit aa04d5d9 by Kurtis Rainbolt-Greene

Merge pull request #307 from p-push/grammar

Callbacks are countable, use several instead of few to reference them
parents 8f6a10ec e604be96
...@@ -255,7 +255,7 @@ The `recover` method in `acts_as_paranoid` runs `update` callbacks. Paranoia's ...@@ -255,7 +255,7 @@ The `recover` method in `acts_as_paranoid` runs `update` callbacks. Paranoia's
## Callbacks ## Callbacks
Paranoia provides few callbacks. It triggers `destroy` callback when the record is marked as deleted and `real_destroy` when the record is completely removed from database. It also calls `restore` callback when the record is restored via paranoia Paranoia provides several callbacks. It triggers `destroy` callback when the record is marked as deleted and `real_destroy` when the record is completely removed from database. It also calls `restore` callback when the record is restored via paranoia
For example if you want to index your records in some search engine you can go like this: For example if you want to index your records in some search engine you can go like this:
......
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