Order admin poll list by starts_at date

This commit is contained in:
decabeza
2019-01-23 14:53:46 +01:00
parent 5ea1275e6a
commit dfd4f60e15
6 changed files with 25 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ class Admin::Poll::PollsController < Admin::Poll::BaseController
before_action :load_geozones, only: [:new, :create, :edit, :update]
def index
@polls = Poll.order(starts_at: :desc)
end
def show