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,994 of 186,833
Downloads: 61,982
Daily
Ranking: 14,477 of 186,696
Downloads: 37
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,901,817,099 | bundler |
36 | 696,900,345 | activerecord |
99 | 412,963,376 | simplecov |
276 | 160,548,836 | sqlite3 |
4,099 | 2,170,183 | jdbc-sqlite3 |
4,186 | 2,051,789 | activerecord-jdbcsqlite3-adapter |
4,264 | 1,964,323 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |