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: 15,245 of 197,051
Downloads: 147,135
Daily
Ranking: 5,901 of 197,010
Downloads: 529
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,792,501,566 | bundler |
| 37 | 845,130,767 | activerecord |
| 98 | 505,449,469 | simplecov |
| 285 | 196,796,104 | sqlite3 |
| 4,269 | 2,491,768 | jdbc-sqlite3 |
| 4,386 | 2,322,256 | jeweler |
| 4,428 | 2,266,394 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |