Browse files

Fix index order in offer controller

  • Loading branch information...
1 parent af0c744 commit c54b6f29af5257e38a75dfa746c2432a35722268 @pzupan committed Oct 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/admin/offers_controller.rb
View
2 app/controllers/admin/offers_controller.rb
@@ -4,7 +4,7 @@ class Admin::OffersController < Admin::BaseController
def index
@offers = Offer.pending_offers.paginate(:all,
:include => :user,
- :order => 'users.created_at, users.product_id',
+ :order => 'offers.created_at, offers.product_id',
:page => params[:page])
end

0 comments on commit c54b6f2

Please sign in to comment.