Skip to content
Browse files

default order adjustments to be ordered by created_at asc

Fixes #1549
  • Loading branch information...
1 parent be3388d commit dab7e8d8eb81fbe2bfac4d0be9374e33c9b06458 @citrus citrus committed with radar May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/models/spree/order.rb
View
2 core/app/models/spree/order.rb
@@ -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

0 comments on commit dab7e8d

Please sign in to comment.
Something went wrong with that request. Please try again.