Ensure to get also deleted entries in belongs_to assoc.

This commit is contained in:
Benjamin Meichsner 2013-03-10 19:39:59 +01:00
parent b0e12d177e
commit c18fb20115
8 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@ class OrderArticle < ActiveRecord::Base
attr_reader :update_current_price
belongs_to :order
belongs_to :article
belongs_to :article, :with_deleted => true
belongs_to :article_price
has_many :group_order_articles, :dependent => :destroy