Fixed bug in ArticlePrice history. Closes #12
This commit is contained in:
parent
4c57c57827
commit
8b8a7c08cd
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Article < ActiveRecord::Base
|
||||||
# Associations
|
# Associations
|
||||||
belongs_to :supplier
|
belongs_to :supplier
|
||||||
belongs_to :article_category
|
belongs_to :article_category
|
||||||
has_many :article_prices, :order => "created_at"
|
has_many :article_prices, :order => "created_at DESC"
|
||||||
|
|
||||||
named_scope :available, :conditions => {:availability => true}
|
named_scope :available, :conditions => {:availability => true}
|
||||||
named_scope :not_in_stock, :conditions => {:type => nil}
|
named_scope :not_in_stock, :conditions => {:type => nil}
|
||||||
|
|
Loading…
Reference in a new issue