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 29, 2012
1 parent be3388d commit dab7e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/order.rb
Expand Up @@ -30,7 +30,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 dab7e8d

Please sign in to comment.