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

@ -7,7 +7,7 @@ class Article < ActiveRecord::Base
localize_input_of :price, :tax, :deposit
# Associations
belongs_to :supplier
belongs_to :supplier, :with_deleted => true
belongs_to :article_category
has_many :article_prices, :order => "created_at DESC"