Added year to showed creation date and ordered by date DESC

Backported from AyuntamientoMadrid/consul fork
This commit is contained in:
María Checa
2018-04-16 18:02:55 +02:00
committed by Marko Lovic
parent 7053711269
commit 4d355f3531
4 changed files with 25 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
class Admin::SignatureSheetsController < Admin::BaseController
def index
@signature_sheets = SignatureSheet.all
@signature_sheets = SignatureSheet.all.order(created_at: :desc)
end
def new
@@ -29,4 +29,4 @@ class Admin::SignatureSheetsController < Admin::BaseController
params.require(:signature_sheet).permit(:signable_type, :signable_id, :document_numbers)
end
end
end