Skip to content

Commit

Permalink
default order adjustments to be ordered by created_at asc
Browse files Browse the repository at this point in the history
Fixes #1549
  • Loading branch information
citrus authored and radar committed May 21, 2012
1 parent ece0250 commit aef2fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/order.rb
Expand Up @@ -24,7 +24,7 @@ class Order < ActiveRecord::Base
has_many :payments, :dependent => :destroy
has_many :shipments, :dependent => :destroy
has_many :return_authorizations, :dependent => :destroy
has_many :adjustments, :as => :adjustable, :dependent => :destroy
has_many :adjustments, :as => :adjustable, :dependent => :destroy, :order => "created_at ASC"

accepts_nested_attributes_for :line_items
accepts_nested_attributes_for :bill_address
Expand Down

0 comments on commit aef2fd9

Please sign in to comment.