Hides budget polls in polls admin index

This commit is contained in:
María Checa
2018-06-08 14:58:47 +02:00
committed by Javi Martín
parent f6739dc7e5
commit acb0a6070e
2 changed files with 20 additions and 1 deletions

View File

@@ -7,7 +7,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)
@polls = Poll.not_budget.order(starts_at: :desc)
end
def show