Categories: None [Edit]
protective
Protect records from being destroyed in a declarative way. Simply add 'protect_if :dont_delete, "Record is marked as not deletable"' to your ActiveRecord model. Your record will no be destroyed and the given message is added to the errors object.
Total
Ranking: 19,810 of 193,767
Downloads: 87,914
Daily
Ranking: 9,772 of 193,752
Downloads: 62
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 |
|---|---|---|
| 1 | 3,495,674,061 | bundler |
| 36 | 801,793,063 | activerecord |
| 97 | 475,999,505 | simplecov |
| 279 | 186,046,291 | sqlite3 |
| 4,198 | 2,436,051 | jdbc-sqlite3 |
| 4,326 | 2,245,194 | jeweler |
| 4,347 | 2,218,877 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |