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: 14,230 of 199,228
Downloads: 173,100
Daily
Ranking: 12,804 of 199,184
Downloads: 107
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 | 4,015,435,206 | bundler |
| 37 | 876,949,277 | activerecord |
| 97 | 526,029,737 | simplecov |
| 287 | 204,093,631 | sqlite3 |
| 4,316 | 2,529,828 | jdbc-sqlite3 |
| 4,433 | 2,352,347 | jeweler |
| 4,477 | 2,295,259 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |