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: 22,109 of 188,277
Downloads: 68,657
Daily
Ranking: 16,072 of 188,252
Downloads: 43
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,082,208,484 | bundler |
| 36 | 733,082,542 | activerecord |
| 99 | 432,857,845 | simplecov |
| 275 | 169,131,258 | sqlite3 |
| 4,128 | 2,287,770 | jdbc-sqlite3 |
| 4,228 | 2,130,387 | activerecord-jdbcsqlite3-adapter |
| 4,308 | 2,035,143 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |