extended_error_messages.rb

Path: lib/features/extended_error_messages.rb
Last Update: Wed Oct 03 18:09:05 +0200 2007

Extended error messages feature

Extends the processing of ActiveRecord error messages to make it possible to insert the current model and attribute name into the error messages.

  The :attr is invalid
  The :attr of :model is invalid

As soon as :attr is found in an error message the full_messages method will not prefix the error message with an attribute name.

Used sections of the language file

This feature doen‘t use entries form the language.

[Validate]