[#890] order dossier for user by last update
This commit is contained in:
parent
170655a72b
commit
92d5fb4cf3
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue