[#890] order dossier for user by last update

This commit is contained in:
Tanguy PATTE 2015-09-25 10:26:50 +02:00
parent 170655a72b
commit 92d5fb4cf3
3 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,7 @@
class Users::DossiersController < UsersController
before_action :authenticate_user!
def index
@dossiers = current_user.dossiers.decorate
@dossiers = current_user.dossiers.order(updated_at: 'DESC').decorate
end
def show