Show usefull error message for uniqueness_of_name with acts_as_paranoid.

Fixed #88

Conflicts:

	app/models/ordergroup.rb
This commit is contained in:
Benjamin Meichsner 2013-02-24 23:26:16 +01:00 committed by wvengen
parent 0b66fe6d62
commit 3fb5c313ee
6 changed files with 29 additions and 6 deletions

View file

@ -142,6 +142,7 @@ de:
odd: muss ungerade sein
record_invalid: ! 'Gültigkeitsprüfung ist fehlgeschlagen: %{errors}'
taken: ist bereits vergeben
taken_with_deleted: ist bereits vergeben (eine gelöschte Gruppe)
too_long: ist zu lang (nicht mehr als %{count} Zeichen)
too_short: ist zu kurz (nicht weniger als %{count} Zeichen)
wrong_length: hat die falsche Länge (muss genau %{count} Zeichen haben)

View file

@ -142,6 +142,7 @@ en:
odd: must be odd
record_invalid: ! 'validation failed: %{errors}'
taken: is already taken
taken_with_deleted: is already taken (deleted group)
too_long: is too long (no more than %{count} characters)
too_short: is too short (use more than %{count} characters)
wrong_length: is the wrong length (has to have exactly %{count} characters)