diff --git a/app/models/article.rb b/app/models/article.rb index a3f70392..b12288b2 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -32,7 +32,7 @@ class Article < ActiveRecord::Base # Associations belongs_to :supplier 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 :not_in_stock, :conditions => {:type => nil}