finish i18n of models without view

This commit is contained in:
wvengen 2013-03-22 01:21:44 +01:00
parent 75a1051668
commit f81e315d6f
7 changed files with 44 additions and 16 deletions

View file

@ -136,7 +136,7 @@ class OrderArticle < ActiveRecord::Base
private
def article_and_price_exist
errors.add(:article, "muss angegeben sein und einen aktuellen Preis haben") if !(article = Article.find(article_id)) || article.fc_price.nil?
errors.add(:article, I18n.t('model.order_article.error_price')) if !(article = Article.find(article_id)) || article.fc_price.nil?
end
# Associate with current article price if created in a finished order