Sha256: c313ea53329fe2e472a98ecf92e09dc4d4bba1ba526c1e34e1c0d6619ea4729c
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
Dependent Restrict ================== [](http://badge.fury.io/rb/dependent_restrict) [](https://travis-ci.org/sealink/dependent_restrict) [](https://coveralls.io/r/sealink/dependent_restrict) [](https://gemnasium.com/sealink/dependent_restrict) [](https://codeclimate.com/github/sealink/dependent_restrict) A gem for rails 2, 3 and 4 that retrofits and improves rails 4 functionality Rails 4 offers 2 very useful dependent restrictions: ```ruby dependent: :raise_with_exception dependent: :raise_with_error ``` In rails 3 it was just: ```ruby dependent: :raise # same sa raise_with_exception ``` In rails 2 these didn't exist, it was just ```ruby dependent: destroy ``` Which is available in rails 2, 3 and 4 ## Differences from standard rails 4 * Error includes detailed message which shows up to 5 of the records that are dependent This is useful for users to know which dependencies must be removed before they can remove the parent record
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dependent_restrict-0.2.4 | README.md |
dependent_restrict-0.2.3 | README.md |