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: 24,938 of 183,147
Downloads: 51,181
Daily
Ranking: 18,229 of 183,139
Downloads: 4
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,410,789,589 | bundler |
35 | 596,623,208 | activerecord |
99 | 348,647,059 | simplecov |
253 | 141,634,010 | sqlite3 |
4,023 | 1,909,538 | jdbc-sqlite3 |
4,049 | 1,877,486 | activerecord-jdbcsqlite3-adapter |
4,068 | 1,855,571 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |