Avoid deleting categories which still have articles.

This commit is contained in:
benni 2012-12-11 10:53:01 +01:00
parent 620ec946f1
commit bae09624b7
3 changed files with 20 additions and 0 deletions

View file

@ -21,6 +21,11 @@ de:
previous: "‹"
next: "›"
truncate: "..."
controller:
article_categories:
destroy:
error: 'Kategorie konnte nicht gelöscht werden: %{message}'
date:
abbr_day_names:
- So
@ -216,6 +221,7 @@ de:
activerecord:
errors:
<<: *errors
has_many_left: 'ist noch mit einem/r %{collection} verknüpft!'
models:
article: Artikel
supplier: Lieferant