Add a description for open polls

This commit is contained in:
Julian Herrero
2019-01-16 16:43:09 +01:00
parent 53530ba99b
commit 884274c4ad
23 changed files with 235 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
class PollsController < ApplicationController
include PollsHelper
before_action :load_active_poll, only: :index
load_and_authorize_resource
has_filters %w[current expired]
@@ -34,4 +36,10 @@ class PollsController < ApplicationController
def results
end
private
def load_active_poll
@active_poll = ActivePoll.first
end
end