jwinky/ar_utilities
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A collection of enhancements, snippets, and utility mix-ins to ActiveRecord. ActiveRecord::TransactionalDestroyAll Adds the #destroy_all! method to all ActiveRecord objects. This method will destroy all records by instantiating them and calling #destroy inside a transaction. Returns the collection of objects that were destroyed; each will be frozen to reflect that no changes should be made (since they cannot be persisted anymore). If one or more objects cannot be destroyed (e.g. due to a before_destroy callback returning false) then the transaction is rolled back and ActiveRecord::CannotDestroy is raised.
About
Small ActiveRecord enhancements and snippets
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published