diff --git a/app/models/article_category.rb b/app/models/article_category.rb index bd0e3d68..c93e1c31 100644 --- a/app/models/article_category.rb +++ b/app/models/article_category.rb @@ -8,7 +8,7 @@ class ArticleCategory < ActiveRecord::Base protected def check_for_associated_articles - raise I18n.t('activerecord.errors.has_many_left', collection: Article.model_name.human) if articles.exists? + raise I18n.t('activerecord.errors.has_many_left', collection: Article.model_name.human) if articles.undeleted.exists? end end