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: 21,670 of 189,104
Downloads: 71,609
Daily
Ranking: 14,011 of 189,083
Downloads: 50
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,155,797,051 | bundler |
| 36 | 747,347,908 | activerecord |
| 99 | 440,871,647 | simplecov |
| 277 | 172,133,677 | sqlite3 |
| 4,131 | 2,333,088 | jdbc-sqlite3 |
| 4,246 | 2,155,935 | activerecord-jdbcsqlite3-adapter |
| 4,301 | 2,081,535 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |