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,879 of 186,954
Downloads: 63,067
Daily
Ranking: 22,726 of 186,947
Downloads: 14
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 | 2,937,224,863 | bundler |
36 | 704,738,337 | activerecord |
99 | 417,277,843 | simplecov |
275 | 162,347,314 | sqlite3 |
4,104 | 2,191,754 | jdbc-sqlite3 |
4,193 | 2,069,042 | activerecord-jdbcsqlite3-adapter |
4,284 | 1,974,631 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |