Ensure to get also deleted entries in belongs_to assoc.
This commit is contained in:
parent
b0e12d177e
commit
c18fb20115
8 changed files with 8 additions and 8 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue