change_replies_order.diff

Yannick Voyer, 2012-06-08 17:31

Download (626 Bytes)

View differences:

app/controllers/messages_controller.rb (working copy)
44 44
                                           :limit => @reply_pages.items_per_page,
45 45
                                           :offset => @reply_pages.current.offset)
46 46

  
47
    @replies.reverse! if User.current.wants_comments_in_reverse_order?
47 48
    @reply = Message.new(:subject => "RE: #{@message.subject}")
48 49
    render :action => "show", :layout => false if request.xhr?
49 50
  end