Fixed bug in ArticlePrice history. Closes #12

This commit is contained in:
Benjamin Meichsner 2009-05-13 12:52:35 +02:00
parent 4c57c57827
commit 8b8a7c08cd

View file

@ -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}