RubyGems Navigation menu

protective 0.1.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.1.0 - February 6, 2011 (7 KB)

Authors:

  • Pascal Zumkehr

Owners:

319fd052917295138ff2249b60f81540

Sha 256 checksum:

8eb8b4013b851140e6d7d7c57bd5d145902d50db769e8f7168b51813c5a96811

Total downloads 2,227

For this version 2,227

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: