Categories: None [Edit]
acts_as_archival
*Atomic archiving/unarchiving for ActiveRecord-based apps*
We had the problem that acts_as_paranoid and similar plugins/gems always work on
a record by record basis and made it very difficult to restore records
atomically (or archive them, for that matter).
Because the archive and unarchive methods are in transactions, and every
archival record involved gets the same archive number upon archiving, you can
easily restore or remove an entire set of records without having to worry about
partial deletion or restoration.
Additionally, other plugins generally screw with how destroy/delete work. We
don't because we actually want to be able to destroy records.
Total
Ranking: 6,139 of 192,405
Downloads: 919,394
Daily
Ranking: 8,700 of 192,384
Downloads: 185
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,302,238,449 | rake |
| 36 | 782,936,129 | activerecord |
| 56 | 683,205,646 | rubocop |
| 236 | 208,677,377 | database_cleaner |
| 279 | 180,841,334 | sqlite3 |
| 2,016 | 13,865,542 | appraisal |
| 2,046 | 13,312,846 | rr |
| 80,466 | 11,799 | assertions-eb |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | esquivalient | |
| 2 | jasongladish |