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: 20,206 of 192,692
Downloads: 83,755
Daily
Ranking: 9,391 of 192,666
Downloads: 49
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,389,621,074 | bundler |
| 36 | 786,213,027 | activerecord |
| 99 | 464,953,038 | simplecov |
| 278 | 181,938,143 | sqlite3 |
| 4,169 | 2,414,873 | jdbc-sqlite3 |
| 4,309 | 2,204,542 | jeweler |
| 4,310 | 2,204,239 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |