Permalink
Browse files

default order adjustments to be ordered by created_at asc

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

0 comments on commit aef2fd9

Please sign in to comment.