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.

Gemfile:
=

instalar:
=

Versiones:

  1. 0.2.0 July 11, 2017 (8,5 KB)
  2. 0.1.0 February 07, 2011 (7 KB)

dependencias de Runtime (1):

dependencias de Development (6):

Propietarios:

Autores:

  • Pascal Zumkehr

SHA 256 checksum:

=

Total de descargas 51.587

Para esta versión 33.178

Versión publicada:

Licencia:

MIT

Versión de Ruby requerida: >= 0

Enlace: