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,401 of 190,365
Downloads: 74,003
Daily
Ranking: 9,949 of 190,317
Downloads: 119
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,243,919,424 | bundler |
| 36 | 762,217,870 | activerecord |
| 99 | 449,998,013 | simplecov |
| 279 | 175,249,192 | sqlite3 |
| 4,147 | 2,368,150 | jdbc-sqlite3 |
| 4,276 | 2,175,616 | activerecord-jdbcsqlite3-adapter |
| 4,300 | 2,139,148 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |