RubyGems Navigation menu

protective 0.2.0

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.

Versions:

  1. 0.2.0 - July 11, 2017 (8.5 KB)
  2. 0.1.0 - February 06, 2011 (7 KB)

Runtime Dependencies (1):

Authors:

  • Pascal Zumkehr

Owners:

319fd052917295138ff2249b60f81540

SHA 256 checksum:

876bdeff8cd4c3e7da68c76d532201307a4a88932632d4015de9ae84cd0018ae

Total downloads 8,815

For this version 428

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

MIT

Required Ruby Version: >= 0

Links: